Function at 0x426340
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x481201
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x4a97e0]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a97e0]
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.00401d60
movzx edx, bl
push edx
push str.GetIpAddrFromHostName_blIpv6___d_
mov dword [esp + 0x164], ebp
call fcn.00421450
mov edi, eax
call fcn.00421970
add esp, 8
cmp dword [esp + 0x54], ebp
jne 0x426451
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 0x4263e8
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 0x42641f
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 0x426430
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x88]
push eax
lea esi, [esp + 0x48]
call fcn.00401b80
mov edi, dword [esp + 0x44]
xor eax, eax
sub bl, 1
neg bl
mov ebp, 8
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
sbb ebx, ebx
and ebx, 0xffffffeb
add ebx, 0x17
cmp dword [esp + 0x58], ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 6
jae 0x4264a7
lea edi, [esp + 0x44]
lea ecx, [esp + 0x124]
push ecx
mov ebx, 0x27
call fcn.00422500
mov eax, dword [0x4b13a8]
xor ebx, ebx
add esp, 4
cmp eax, ebx
jne 0x4264d2
push ebx
call fcn.00425d50
mov dword [0x4b13a8], eax
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x24]
push ecx
push ebx
lea edx, [esp + 0x130]
push edx
call eax
mov esi, eax
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp esi, ebx
je 0x426548
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebx
push 0x400
push 0x4b0ba0
push 0x400
push eax
push ebx
push 0x12ff
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0x4b0ba0
call fcn.00421450
mov edi, eax
call fcn.00421970
add esp, 4
cmp dword [esp + 0x58], ebp
jb 0x42653e
mov eax, dword [esp + 0x44]
push eax
call fcn.0044204a
add esp, 4
mov eax, 1
jmp 0x4266c6
mov esi, dword [esp + 0x18]
cmp esi, ebx
jne 0x42656d
cmp dword [esp + 0x58], ebp
jb 0x42653e
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0044204a
add esp, 4
mov eax, 1
jmp 0x4266c6
mov edi, dword [esi + 0x18]
cmp edi, ebx
jne 0x4265a9
mov eax, dword [0x4b13ac]
cmp eax, ebx
jne 0x426589
push 2
call fcn.00425d50
mov dword [0x4b13ac], eax
push esi
call eax
cmp dword [esp + 0x58], ebp
jb 0x42653e
mov edx, dword [esp + 0x44]
push edx
call fcn.0044204a
add esp, 4
mov eax, 1
jmp 0x4266c6
push 0x4c
lea eax, [esp + 0xda]
push ebx
push eax
xor ebp, ebp
mov word [esp + 0xe0], bx
call fcn.00461780
mov esi, dword [esi + 0x18]
add esp, 0xc
cmp word [edi], 0x17
jne 0x4265e1
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xd8]
push edx
push ebx
push 0x1c
jmp 0x4265f1
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xd8]
push ecx
push ebx
push 0x10
push esi
call dword [sym.imp.WS2_32.dll_WSAAddressToStringW]
test eax, eax
je 0x42661c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
call fcn.00425320
push eax
call fcn.00421450
mov edi, eax
call fcn.00421970
mov ebp, 1
add esp, 4
lea edx, [esp + 0xd4]
lea eax, [esp + 0x5c]
call fcn.0040e370
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x88]
push eax
mov byte [esp + 0x164], 1
call fcn.00424fb0
mov edi, dword [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x15c], 2
call fcn.004250a0
lea ecx, [esp + 0x84]
call fcn.004251e0
mov edi, 8
mov byte [esp + 0x15c], bl
cmp dword [esp + 0x74], edi
jb 0x426684
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0044204a
add esp, 4
mov eax, dword [0x4b13ac]
cmp eax, ebx
mov esi, dword [esp + 0x18]
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], bx
jne 0x4266ae
push 2
call fcn.00425d50
mov dword [0x4b13ac], eax
push esi
call eax
cmp dword [esp + 0x58], edi
jb 0x4266c4
mov edx, dword [esp + 0x44]
push edx
call fcn.0044204a
add esp, 4
mov eax, ebp
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.0045e88c
add esp, 0x14c
ret 4