Function at 0x485450
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ce8b8
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x506040]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x506040]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x80]
mov dword [esp + 0x18], 0
push eax
mov dword [esp + 0x24], 0
call fcn.004442f0
mov edi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0xa8], 0
push eax
mov ecx, ebx
call fcn.004442b0
mov esi, eax
mov byte [esp + 0xa8], 1
cmp dword [edi + 0x14], 0x10
jb 0x4854eb
mov edi, dword [edi]
cmp dword [esi + 0x14], 0x10
jb 0x4854f3
mov esi, dword [esi]
test esi, esi
je 0x4854fc
cmp byte [esi], 0
jne 0x4854fe
xor esi, esi
test edi, edi
je 0x485507
cmp byte [edi], 0
jne 0x485509
xor edi, edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [esp + 0x20]
push eax
push ebx
push edi
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00440f20
mov edi, dword [esp + 0x1c]
mov ecx, eax
add esp, 8
cmp dword [esp + 0x4c], 0x10
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
mov eax, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x485557
push dword [esp + 0x38]
call eax
mov eax, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [esp + 0x94], 0x10
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
jb 0x485582
push dword [esp + 0x80]
call eax
add esp, 4
mov esi, dword [esp + 0x20]
mov dword [esp + 0x24], esi
mov dword [esp + 0xa8], 2
cmp dword [edi], 0
je 0x4855c1
xor edi, edi
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
lea ecx, [esp + 0x38]
mov byte [esp + 0xa8], 3
mov dword [esp + 0x14], ecx
lea ebx, [edi + 1]
jmp 0x485622
lea eax, [esp + 0x68]
mov ecx, ebx
push eax
call fcn.004442f0
mov edi, eax
lea eax, [esp + 0x50]
mov dword [esp + 0xa8], 4
push eax
mov ecx, ebx
mov dword [esp + 0x1c], 2
call fcn.004442b0
mov dword [esp + 0xa8], 5
lea ecx, [esp + 0x2c]
mov edx, dword [esp + 0x20]
push edi
push eax
mov dword [esp + 0x20], 6
call fcn.0044ed80
mov edi, dword [esp + 0x44]
add esp, 8
mov ecx, eax
mov dword [esp + 0x14], eax
mov ebx, 0xe
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, eax
mov dword [esp + 0x1c], ebx
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.0041bb20
mov ecx, dword [esp + 0x14]
or ebx, 0x10
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 8], eax
test bl, 8
je 0x48568f
mov edx, dword [esp + 0x30]
and ebx, 0xfffffff7
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edx
test edx, edx
je 0x48568f
lea eax, [edx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x48568f
mov eax, dword [edx]
mov ecx, edx
call dword [eax]
mov ecx, dword [esp + 0x14]
or edx, 0xffffffff
lea eax, [ecx + 8]
lock xadd dword [eax], edx
jne 0x48568f
mov eax, dword [ecx]
call dword [eax + 4]
test bl, 4
je 0x4856c0
and ebx, 0xfffffffb
cmp dword [esp + 0x64], 0x10
jb 0x4856ab
push dword [esp + 0x50]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
test bl, 2
je 0x4856f1
and ebx, 0xfffffffd
cmp dword [esp + 0x7c], 0x10
jb 0x4856dc
push dword [esp + 0x68]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], 0
mov byte [esp + 0x68], 0
mov dword [esp + 0xa8], 2
test bl, 1
je 0x48572a
test edi, edi
je 0x48572a
or ebx, 0xffffffff
lea eax, [edi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
jne 0x48572a
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lea eax, [edi + 8]
lock xadd dword [eax], ebx
dec ebx
jne 0x48572a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
test esi, esi
je 0x485735
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret 0x10