Function at 0x5905d9a0
Capabilities:
Get hostname

Disassembly:
sub esp, 0x158
push ebx
push ebp
mov ebp, dword [esp + 0x164]
xor ebx, ebx
push esi
cmp ebp, ebx
push edi
je 0x5905dc68
mov esi, dword [esp + 0x170]
cmp esi, ebx
jle 0x5905dc68
lea ecx, [esi + esi]
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.5905a1f0
mov edi, dword [esp + 0x178]
mov dword [edi], eax
cmp word [0x59195a14], bx
je 0x5905da6e
lea eax, [esi - 1]
cmp eax, 0x28
jl 0x5905da03
mov eax, 0x27
push eax
push 0x59195a14
push ebp
call fcn.5907b55d
mov eax, dword [0x59195ab4]
mov ecx, dword [esp + 0x180]
and eax, 0xffff
add esp, 0xc
mov dword [ecx], eax
mov eax, dword [0x59194a20]
cmp eax, ebx
je 0x5905dc68
mov eax, dword [0x59195ab4]
mov edx, dword [edi]
and eax, 0xffff
push edx
push eax
push 0x59195a14
push 0x59195a64
push str.GetUserInfo_Self___s____s____d____d_
push str.UserInfo
push 0xffffffffffffffff
push 0x591949b4
call fcn.59078030
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x158
ret
cmp word [0x59195a64], bx
jne 0x5905dac5
mov ecx, 0x14
xor eax, eax
mov edi, 0x59195a64
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
mov ecx, 9
lea edi, [esp + 0x15]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
stosb byte es:[edi], al
mov dword [esp + 0x18], 0x28
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0x28
push 0x59195a64
lea eax, [esp + 0x1c]
push 0xffffffffffffffff
push eax
call fcn.590596e0
add esp, 0x10
cmp dword [0x59194a20], ebx
je 0x5905daf0
push 0x59195a14
push 0x59195a64
push str.GetUserInfo_Self___s____s_
push str.UserInfo
push 0xffffffffffffffff
push 0x591949b4
call fcn.59078030
add esp, 0x18
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x105]
mov byte [esp + 0x104], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x3e]
mov word [esp + 0x3c], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x104]
push 0x64
push ecx
stosw word es:[edi], ax
call fcn.5905b700
add esp, 8
test eax, eax
je 0x5905dc68
lea edx, [esp + 0x3c]
push 0x64
push edx
lea eax, [esp + 0x10c]
push 0xffffffffffffffff
push eax
call fcn.590596e0
mov eax, dword [0x59194a20]
add esp, 0x10
cmp eax, ebx
je 0x5905db78
lea ecx, [esp + 0x3c]
push ecx
push 0x59178d50
push str.UserInfo
push 0xffffffffffffffff
push 0x591949b4
call fcn.59078030
add esp, 0x14
lea edx, [esp + 0x3c]
push 0x5c
push edx
call fcn.5907e8b7
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x5905dbdf
mov edi, esi
lea eax, [esp + 0x3c]
sub edi, eax
push 0x59195a64
sar edi, 1
call fcn.5907c6fd
add esp, 4
cmp eax, edi
jne 0x5905dbdf
lea ecx, [esp + 0x3c]
push edi
push ecx
push 0x59195a64
call fcn.59120f9c
add esp, 0xc
test eax, eax
jne 0x5905dbdf
add esi, 2
push esi
call fcn.5907c6fd
lea edi, [eax + eax]
lea edx, [esp + 0x40]
push edi
push esi
push edx
call fcn.5907ce30
add esp, 0x10
mov word [esp + edi + 0x3c], bx
lea eax, [esp + 0x3c]
push 0x27
push eax
push 0x59195a14
call fcn.5907b55d
mov ecx, dword [esp + 0x17c]
dec ecx
push ecx
push 0x59195a14
push ebp
call fcn.5907b55d
add esp, 0x18
cmp word [0x59195a14], bx
je 0x5905dc2f
push 0x59178d4c
push 0x59195a14
call fcn.5907b59a
add esp, 8
neg eax
sbb eax, eax
neg eax
inc eax
mov word [0x59195ab4], ax
cmp dword [0x59194a20], ebx
je 0x5905dc68
mov edx, dword [esp + 0x178]
mov ecx, dword [0x59195ab4]
and ecx, 0xffff
mov eax, dword [edx]
push eax
push ecx
push ebp
push str.GetUserInfo_Self_1___s____d____d_
push str.UserInfo
push 0xffffffffffffffff
push 0x591949b4
call fcn.59078030
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x158
ret