Function at 0x40ae90
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x43dd01
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x44ede8]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44ede8]
xor eax, esp
push eax
lea eax, [esp + 0x154]
mov dword fs:[0], eax
mov bl, dl
mov eax, dword [esp + 0x164]
xor ebp, ebp
push 0xffffffffffffffff
mov dword [esp + 0x20], ecx
push ebp
lea ecx, [esp + 0x48]
mov dword [esp + 0x1c], 0x27
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebp
mov word [esp + 0x4c], bp
call fcn.00403ae0
movzx edx, bl
push edx
push str.GetIpAddrFromHostName_blIpv6___d_
mov dword [esp + 0x164], ebp
call fcn.004082f0
mov edi, eax
call fcn.004087d0
add esp, 8
cmp dword [esp + 0x54], ebp
jne 0x40afa1
push 0x27
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [esp + 0x5c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40af38
push 0x27
lea ecx, [esp + 0x88]
push ecx
sub eax, edx
push 0xffffffffffffffff
lea edx, [esp + 0x68]
push edx
push ebp
push 0xfde9
mov esi, eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp esi, 0x27
jae 0x40af6f
mov word [esp + esi*2 + 0x84], bp
lea eax, [esp + 0x84]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x40af80
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x88]
push eax
lea esi, [esp + 0x48]
call fcn.00403a40
mov edx, dword [esp + 0x44]
xor eax, eax
sub bl, 1
neg bl
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
sbb ebx, ebx
and ebx, 0xffffffeb
add ebx, 0x17
mov dword [esp + 0x24], ebx
mov ebx, 8
cmp dword [esp + 0x58], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 6
jae 0x40aff7
lea edx, [esp + 0x44]
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x40b000
sub eax, esi
sar eax, 1
mov esi, eax
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x40b016
push ebp
push ebp
push 0x27
sub eax, edi
lea ecx, [esp + 0xe0]
push ecx
sar eax, 1
push eax
push edx
push ebp
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp esi, 0x27
jae 0x40b04c
mov byte [esp + esi + 0xd4], 0
mov eax, dword [0x454a40]
cmp eax, ebp
jne 0x40b060
push ebp
call fcn.0040a8a0
mov dword [0x454a40], eax
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x24]
push ecx
push ebp
lea edx, [esp + 0xe0]
push edx
call eax
mov esi, eax
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp esi, ebp
je 0x40b0d6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebp
push 0x400
push 0x454238
push 0x400
push eax
push ebp
push 0x12ff
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0x454238
call fcn.004082f0
mov edi, eax
call fcn.004087d0
add esp, 4
cmp dword [esp + 0x58], ebx
jb 0x40b0cc
mov eax, dword [esp + 0x44]
push eax
call fcn.00412b03
add esp, 4
mov eax, 1
jmp 0x40b255
mov esi, dword [esp + 0x18]
cmp esi, ebp
jne 0x40b0fb
cmp dword [esp + 0x58], ebx
jb 0x40b0cc
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00412b03
add esp, 4
mov eax, 1
jmp 0x40b255
mov edi, dword [esi + 0x18]
cmp edi, ebp
jne 0x40b137
mov eax, dword [0x454a44]
cmp eax, ebp
jne 0x40b117
push 2
call fcn.0040a8a0
mov dword [0x454a44], eax
push esi
call eax
cmp dword [esp + 0x58], ebx
jb 0x40b0cc
mov edx, dword [esp + 0x44]
push edx
call fcn.00412b03
add esp, 4
mov eax, 1
jmp 0x40b255
push 0x4c
lea eax, [esp + 0x102]
push ebp
push eax
xor ebx, ebx
mov word [esp + 0x108], bp
call fcn.004232b0
mov esi, dword [esi + 0x18]
add esp, 0xc
cmp word [edi], 0x17
jne 0x40b16f
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x100]
push edx
push ebp
push 0x1c
jmp 0x40b17f
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x100]
push ecx
push ebp
push 0x10
push esi
call dword [sym.imp.WS2_32.dll_WSAAddressToStringW]
test eax, eax
je 0x40b1aa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
call fcn.00409e70
push eax
call fcn.004082f0
mov edi, eax
call fcn.004087d0
mov ebx, 1
add esp, 4
lea edx, [esp + 0xfc]
lea eax, [esp + 0x5c]
call fcn.00403760
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x88]
push eax
mov byte [esp + 0x164], 1
call fcn.00409bd0
mov edi, dword [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x15c], 2
call fcn.00409cc0
lea ecx, [esp + 0x84]
call fcn.00409e00
mov edi, 8
mov byte [esp + 0x15c], 0
cmp dword [esp + 0x74], edi
jb 0x40b213
mov ecx, dword [esp + 0x60]
push ecx
call fcn.00412b03
add esp, 4
mov eax, dword [0x454a44]
cmp eax, ebp
mov esi, dword [esp + 0x18]
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], ebp
mov word [esp + 0x60], bp
jne 0x40b23d
push 2
call fcn.0040a8a0
mov dword [0x454a44], eax
push esi
call eax
cmp dword [esp + 0x58], edi
jb 0x40b253
mov edx, dword [esp + 0x44]
push edx
call fcn.00412b03
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x154]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.00420baf
add esp, 0x14c
ret 4