Function at 0x46b960
Capabilities:
Get hostname

Disassembly:
sub esp, 0x1a8
mov eax, dword [0x4b39fc]
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.00477820
push 0x3e
lea eax, [esp + 0xc2]
xor edx, edx
push ebx
push eax
mov word [esp + 0xc8], dx
call fcn.00477820
push 0x3e
lea edx, [esp + 0x10e]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x114], cx
call fcn.00477820
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.00467c00
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 0x46ba77
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46ba50
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x34]
push esi
push eax
call fcn.004779c0
add esp, 0xc
push esi
call sub.NETAPI32.dll_NetApiBufferFree
mov ecx, dword [0x4b77e0]
push edi
push ecx
call fcn.00472b50
mov ecx, eax
call fcn.00472cb0
mov esi, eax
push esi
call fcn.00463270
add esp, 4
mov edi, eax
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_inet_addr]
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x20]
push ecx
push eax
call fcn.00466a10
add esp, 0xc
test eax, eax
je 0x46baef
mov edx, dword [esp + 0x24]
push edx
push 0x4939a0
lea eax, [esp + 0xbc]
push 0x20
push eax
call fcn.004649e0
mov ecx, dword [esp + 0x2c]
push ecx
push 0x4939b0
lea edx, [esp + 0x10c]
push 0x20
push edx
call fcn.004649e0
add esp, 0x20
mov eax, dword [0x4b77e0]
push eax
call fcn.00472b50
mov ecx, eax
call fcn.00472bb0
push eax
call fcn.00463270
mov esi, eax
push esi
call fcn.00467f70
mov ecx, dword [0x4b77e0]
add esp, 8
push ecx
mov ebp, eax
call fcn.00472b50
mov ecx, eax
call fcn.00472e70
lea edx, [esp + 0x20]
mov dword [esp + 0x30], eax
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00467c30
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, 5
jne 0x46bb84
cmp dword [esp + 0x10], 1
jne 0x46bc45
lea eax, [esp + 0x74]
add eax, 0xfffffffe
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x46bb60
mov edx, dword [0x4939b8]
mov cx, word [0x4939bc]
mov dword [eax], edx
mov word [eax + 4], cx
jmp 0x46bc45
cmp eax, 6
jne 0x46bc14
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x46bbbd
lea edi, [esp + 0x74]
add edi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x46bba0
mov edx, dword [0x4939c0]
mov dword [edi], edx
mov edi, dword [esp + 0x18]
jmp 0x46bc45
cmp eax, 2
jne 0x46bbe9
lea edi, [esp + 0x74]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x46bbd0
mov eax, dword [0x4939c4]
mov dword [edi], eax
mov edi, dword [esp + 0x18]
jmp 0x46bc45
cmp eax, 3
jne 0x46bc45
lea eax, [esp + 0x74]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x46bbf5
mov ecx, dword [0x4939c8]
mov edx, dword [0x4939cc]
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x46bc45
cmp eax, 0xa
jne 0x46bc45
cmp dword [esp + 0x10], ebx
jne 0x46bc45
lea eax, [esp + 0x74]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x46bc26
mov ecx, dword [0x4939d0]
mov dx, word [0x4939d4]
mov dword [eax], ecx
mov word [eax + 4], dx
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x78]
push ecx
push str.Microsoft_Windows__s__d
lea edx, [esp + 0x140]
push 0x80
push edx
call fcn.004649c0
add esp, 0x14
lea eax, [esp + 0x134]
push eax
mov eax, dword [esp + 0x34]
push ebp
lea ecx, [esp + 0xfc]
push ecx
lea edx, [esp + 0xc0]
push edx
push eax
push esi
push edi
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x74]
push edx
call fcn.004685f0
cmp edi, ebx
je 0x46bca9
push edi
call fcn.00478198
add esp, 4
pop edi
cmp esi, ebx
je 0x46bcb7
push esi
call fcn.00478198
add esp, 4
cmp ebp, ebx
je 0x46bcc4
push ebp
call fcn.00478198
add esp, 4
mov eax, dword [0x4b77e8]
inc eax
push ebx
push eax
mov dword [0x4b77e8], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
push 0x401
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x1b0]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004771de
add esp, 0x1a8
ret