Function at 0x4163c0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x456020]
xor eax, ebp
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 4], 0
je 0x4163f3
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 0x4c]
mov dword [eax + 4], 0
push 0x20
push 0
lea ecx, [ebp - 0x3c]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x30], edx
call fcn.00406380
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x18]
call fcn.00411dd0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x416443
mov dword [ebp - 0x50], 0
jmp 0x4164ce
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x14], eax
push 2
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.0041cd10
add esp, 0xc
test eax, eax
jge 0x416472
mov dword [ebp - 0x54], 0
jmp 0x4164c8
cmp dword [ebp - 0x14], 0x400
jg 0x4164a1
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0041cbe0
add esp, 4
movzx edx, al
test edx, edx
je 0x4164a1
mov eax, dword [ebp - 0x14]
call fcn.00445f70
mov dword [ebp - 0x58], esp
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
jmp 0x4164b0
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0041cb30
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
call fcn.0041ccc0
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x4164ec
mov dword [ebp - 0x60], 0
jmp 0x416577
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x14], eax
push 2
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.0041cd10
add esp, 0xc
test eax, eax
jge 0x41651b
mov dword [ebp - 0x64], 0
jmp 0x416571
cmp dword [ebp - 0x14], 0x400
jg 0x41654a
mov eax, dword [ebp - 0x14]
push eax
call fcn.0041cbe0
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x41654a
mov eax, dword [ebp - 0x14]
call fcn.00445f70
mov dword [ebp - 0x68], esp
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], edx
jmp 0x416559
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
call fcn.0041cb30
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.0041ccc0
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x1c], 0
je 0x416589
cmp dword [ebp - 0xc], 0
jne 0x4165a5
push 8
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [ebp - 0x44], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041cd70
mov eax, dword [ebp - 0x44]
jmp 0x4165cc
mov ecx, dword [ebp - 0x4c]
add ecx, 4
push ecx
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x18]
call fcn.0041cd70
mov eax, dword [ebp - 0x48]
lea esp, [ebp - 0x6c]
mov ecx, dword [ebp - 0x40]
xor ecx, ebp
call fcn.0043a53a
mov esp, ebp
pop ebp
ret 0x18