Function at 0x4821b0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cb208
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x503040]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x503040]
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.00441500
mov edi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0xa8], 0
push eax
mov ecx, ebx
call fcn.004414c0
mov esi, eax
mov byte [esp + 0xa8], 1
cmp dword [edi + 0x14], 0x10
jb 0x48224b
mov edi, dword [edi]
cmp dword [esi + 0x14], 0x10
jb 0x482253
mov esi, dword [esi]
test esi, esi
je 0x48225c
cmp byte [esi], 0
jne 0x48225e
xor esi, esi
test edi, edi
je 0x482267
cmp byte [edi], 0
jne 0x482269
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.0043e130
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 0x4822b7
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 0x4822e2
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 0x482321
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 0x482382
lea eax, [esp + 0x68]
mov ecx, ebx
push eax
call fcn.00441500
mov edi, eax
lea eax, [esp + 0x50]
mov dword [esp + 0xa8], 4
push eax
mov ecx, ebx
mov dword [esp + 0x1c], 2
call fcn.004414c0
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.0044c020
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.00419cc0
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 0x4823ef
mov edx, dword [esp + 0x30]
and ebx, 0xfffffff7
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edx
test edx, edx
je 0x4823ef
lea eax, [edx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4823ef
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 0x4823ef
mov eax, dword [ecx]
call dword [eax + 4]
test bl, 4
je 0x482420
and ebx, 0xfffffffb
cmp dword [esp + 0x64], 0x10
jb 0x48240b
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 0x482451
and ebx, 0xfffffffd
cmp dword [esp + 0x7c], 0x10
jb 0x48243c
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 0x48248a
test edi, edi
je 0x48248a
or ebx, 0xffffffff
lea eax, [edi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
jne 0x48248a
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lea eax, [edi + 8]
lock xadd dword [eax], ebx
dec ebx
jne 0x48248a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
test esi, esi
je 0x482495
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.004b73db
mov esp, ebp
pop ebp
ret 0x10