Function at 0x4368d0
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x48a3a1
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x4bc7b8]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bc7b8]
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.0040b800
movzx edx, bl
push edx
push str.GetIpAddrFromHostName_blIpv6___d_
mov dword [esp + 0x164], ebp
call fcn.00426a70
mov edi, eax
call fcn.00426f90
add esp, 8
cmp dword [esp + 0x54], ebp
jne 0x4369e1
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 0x436978
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 0x4369af
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 0x4369c0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x88]
push eax
lea esi, [esp + 0x48]
call fcn.0040b760
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 0x436a37
lea edi, [esp + 0x44]
lea ecx, [esp + 0x124]
push ecx
mov ebx, 0x27
call fcn.004299e0
mov eax, dword [0x4c59e0]
xor ebx, ebx
add esp, 4
cmp eax, ebx
jne 0x436a62
push ebx
call fcn.004362e0
mov dword [0x4c59e0], 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 0x436ad8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebx
push 0x400
push 0x4c51d8
push 0x400
push eax
push ebx
push 0x12ff
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0x4c51d8
call fcn.00426a70
mov edi, eax
call fcn.00426f90
add esp, 4
cmp dword [esp + 0x58], ebp
jb 0x436ace
mov eax, dword [esp + 0x44]
push eax
call fcn.0044ac38
add esp, 4
mov eax, 1
jmp 0x436c56
mov esi, dword [esp + 0x18]
cmp esi, ebx
jne 0x436afd
cmp dword [esp + 0x58], ebp
jb 0x436ace
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0044ac38
add esp, 4
mov eax, 1
jmp 0x436c56
mov edi, dword [esi + 0x18]
cmp edi, ebx
jne 0x436b39
mov eax, dword [0x4c59e4]
cmp eax, ebx
jne 0x436b19
push 2
call fcn.004362e0
mov dword [0x4c59e4], eax
push esi
call eax
cmp dword [esp + 0x58], ebp
jb 0x436ace
mov edx, dword [esp + 0x44]
push edx
call fcn.0044ac38
add esp, 4
mov eax, 1
jmp 0x436c56
push 0x4c
lea eax, [esp + 0xda]
push ebx
push eax
xor ebp, ebp
mov word [esp + 0xe0], bx
call fcn.0046adc0
mov esi, dword [esi + 0x18]
add esp, 0xc
cmp word [edi], 0x17
jne 0x436b71
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xd8]
push edx
push ebx
push 0x1c
jmp 0x436b81
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 0x436bac
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
call fcn.004358b0
push eax
call fcn.00426a70
mov edi, eax
call fcn.00426f90
mov ebp, 1
add esp, 4
lea edx, [esp + 0xd4]
lea eax, [esp + 0x5c]
call fcn.0040b430
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x88]
push eax
mov byte [esp + 0x164], 1
call fcn.00435540
mov edi, dword [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x15c], 2
call fcn.00435630
lea ecx, [esp + 0x84]
call fcn.00435770
mov edi, 8
mov byte [esp + 0x15c], bl
cmp dword [esp + 0x74], edi
jb 0x436c14
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0044ac38
add esp, 4
mov eax, dword [0x4c59e4]
cmp eax, ebx
mov esi, dword [esp + 0x18]
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], bx
jne 0x436c3e
push 2
call fcn.004362e0
mov dword [0x4c59e4], eax
push esi
call eax
cmp dword [esp + 0x58], edi
jb 0x436c54
mov edx, dword [esp + 0x44]
push edx
call fcn.0044ac38
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.004677d8
add esp, 0x14c
ret 4