Function at 0x410480
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4bb028]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, edx
mov eax, dword [edi + 4]
add edi, 4
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x10], edi
cmp eax, esi
je 0x4104af
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [edi], esi
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], esi
mov dword [ebp - 0xc], esi
cmp ebx, esi
jne 0x4104e8
mov dword [ebp - 0x18], esi
jmp 0x410586
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
inc eax
cdq
push 2
push edx
push eax
call fcn.0048b370
mov edi, eax
add eax, 0x80000000
adc edx, esi
mov dword [ebp - 0x18], edx
jne 0x410581
cmp eax, 0xffffffff
ja 0x410581
cmp edi, 0x400
jg 0x41052e
push edi
call fcn.00406890
add esp, 4
test al, al
je 0x41052e
mov eax, edi
call fcn.0048b120
mov esi, esp
jmp 0x410551
or eax, 0xffffffff
sub eax, edi
cmp eax, 8
jb 0x410575
lea eax, [edi + 8]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
cmp eax, esi
je 0x410581
mov dword [eax], esi
mov dword [ebp - 0xc], eax
lea esi, [eax + 8]
test esi, esi
je 0x41057f
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
xor esi, esi
jmp 0x410583
push 0x80070057
call fcn.004069e0
xor esi, esi
xor eax, eax
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 8]
cmp ebx, esi
jne 0x410594
xor eax, eax
jmp 0x410627
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
inc eax
cdq
push 2
push edx
push eax
call fcn.0048b370
mov esi, eax
add eax, 0x80000000
adc edx, 0
mov dword [ebp - 0x40], edx
jne 0x410623
cmp eax, 0xffffffff
ja 0x410623
cmp esi, 0x400
jg 0x4105db
push esi
call fcn.00406890
add esp, 4
test al, al
je 0x4105db
mov eax, esi
call fcn.0048b120
mov edi, esp
jmp 0x410601
or ecx, 0xffffffff
sub ecx, esi
cmp ecx, 8
jb 0x410575
lea eax, [esi + 8]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
je 0x410623
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
mov dword [ebp - 0xc], eax
lea edi, [eax + 8]
test edi, edi
je 0x410623
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, edi
jmp 0x410625
xor eax, eax
xor esi, esi
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
je 0x410650
cmp eax, esi
je 0x410650
mov edx, dword [ebp - 0x10]
push edx
lea edx, [ebp - 0x3c]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
lea esi, [ebp - 0xc]
mov edi, eax
call fcn.00406a00
mov eax, edi
jmp 0x410678
push 8
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp dword [ebp - 0xc], esi
je 0x410675
mov edi, dword [sym.imp.MSVCR90.dll_free]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
push eax
mov dword [ebp - 0xc], esi
call edi
add esp, 4
test esi, esi
jne 0x410663
or eax, 0xffffffff
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0048a3f6
mov esp, ebp
pop ebp
ret 4