Function at 0x474770
Capabilities:
Get hostname

Disassembly:
sub esp, 0x1a8
mov eax, dword [0x4cacfc]
xor eax, esp
mov dword [esp + 0x1a4], eax
push ebx
push ebp
xor ebx, ebx
push esi
push 0x3e
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x76]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov word [esp + 0x7c], ax
call fcn.00487630
push 0x3e
lea eax, [esp + 0xc2]
xor edx, edx
push ebx
push eax
mov word [esp + 0xc8], dx
call fcn.00487630
push 0x3e
lea edx, [esp + 0x10e]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x114], cx
call fcn.00487630
xor eax, eax
add esp, 0x24
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0x30], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push ebx
call fcn.0046fef0
mov esi, eax
xor eax, eax
add esp, 4
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
cmp esi, ebx
je 0x474887
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x474860
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x34]
push esi
push eax
call fcn.004877d0
add esp, 0xc
push esi
call sub.NETAPI32.dll_NetApiBufferFree
mov ecx, dword [0x4ce2c0]
mov edx, dword [0x4ce2bc]
push edi
push ecx
push edx
call fcn.0047c3d0
mov ecx, eax
call fcn.0047c580
mov esi, eax
push esi
call fcn.00466000
add esp, 4
mov edi, eax
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_inet_addr]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
call fcn.0046ecc0
add esp, 0xc
test eax, eax
je 0x474906
mov eax, dword [esp + 0x24]
push eax
push 0x4a7e18
lea ecx, [esp + 0xbc]
push 0x20
push ecx
call fcn.004679c0
mov edx, dword [esp + 0x2c]
push edx
push 0x4a7e28
lea eax, [esp + 0x10c]
push 0x20
push eax
call fcn.004679c0
add esp, 0x20
mov ecx, dword [0x4ce2bc]
push ecx
call fcn.0047c3d0
mov ecx, eax
call fcn.0047c430
push eax
call fcn.00466000
mov esi, eax
push esi
call fcn.004701d0
mov edx, dword [0x4ce2bc]
add esp, 8
push edx
mov ebp, eax
call fcn.0047c3d0
mov ecx, eax
call fcn.0047c780
mov dword [esp + 0x30], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0046ff20
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, 5
jne 0x474999
cmp dword [esp + 0x10], 1
jne 0x474a5f
lea eax, [esp + 0x74]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x474975
mov ecx, dword [0x4a7e30]
mov dx, word [0x4a7e34]
mov dword [eax], ecx
mov word [eax + 4], dx
jmp 0x474a5f
cmp eax, 6
jne 0x474a25
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x4749ce
lea edi, [esp + 0x74]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4749b2
mov eax, dword [0x4a7e38]
mov dword [edi], eax
mov edi, dword [esp + 0x18]
jmp 0x474a5f
cmp eax, 2
jne 0x4749fa
lea edi, [esp + 0x74]
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4749e0
mov ecx, dword [0x4a7e3c]
mov dword [edi], ecx
mov edi, dword [esp + 0x18]
jmp 0x474a5f
cmp eax, 3
jne 0x474a5f
lea eax, [esp + 0x74]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x474a06
mov edx, dword [0x4a7e40]
mov ecx, dword [0x4a7e44]
mov dword [eax], edx
mov dword [eax + 4], ecx
jmp 0x474a5f
cmp eax, 0xa
jne 0x474a5f
cmp dword [esp + 0x10], ebx
jne 0x474a5f
lea eax, [esp + 0x74]
add eax, 0xfffffffe
jmp 0x474a40
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x474a40
mov edx, dword [0x4a7e48]
mov cx, word [0x4a7e4c]
mov dword [eax], edx
mov word [eax + 4], cx
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x78]
push eax
push str.Microsoft_Windows__s__d
lea ecx, [esp + 0x140]
push 0x80
push ecx
call fcn.00466990
add esp, 0x14
lea edx, [esp + 0x134]
push edx
mov edx, dword [esp + 0x34]
push ebp
lea eax, [esp + 0xfc]
push eax
lea ecx, [esp + 0xc0]
push ecx
push edx
push esi
push edi
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.00470880
cmp edi, ebx
je 0x474ac3
push edi
call fcn.00487d04
add esp, 4
pop edi
cmp esi, ebx
je 0x474ad1
push esi
call fcn.00487d04
add esp, 4
cmp ebp, ebx
je 0x474ade
push ebp
call fcn.00487d04
add esp, 4
mov eax, dword [0x4ce2c8]
mov edx, dword [esp + 0x24]
inc eax
push ebx
push eax
mov dword [0x4ce2c8], eax
mov eax, dword [edx + 4]
push 0x401
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x1b0]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00486dc0
add esp, 0x1a8
ret