Function at 0x45f920
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c2bf6
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x5012c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x78], 0
push eax
mov dword [ebp - 0x80], 0
call fcn.0045ffc0
mov edi, eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.0045eb90
mov esi, eax
cmp dword [edi + 0x14], 0x10
mov byte [ebp - 4], 1
jb 0x45f998
mov edi, dword [edi]
cmp dword [esi + 0x14], 0x10
jb 0x45f9a0
mov esi, dword [esi]
test esi, esi
je 0x45f9a9
cmp byte [esi], 0
jne 0x45f9ab
xor esi, esi
test edi, edi
je 0x45f9b4
cmp byte [edi], 0
jne 0x45f9b6
xor edi, edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [ebp - 0x80]
push eax
push ebx
push edi
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00460ac0
mov edi, dword [ebp - 0x74]
mov ecx, eax
add esp, 8
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
jb 0x45f9fb
push dword [ebp - 0x28]
call fcn.004a08c8
add esp, 4
cmp dword [ebp - 0x5c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x45fa1e
push dword [ebp - 0x70]
call fcn.004a08c8
add esp, 4
mov esi, dword [ebp - 0x80]
mov dword [ebp - 0x84], esi
cmp dword [edi], 0
mov dword [ebp - 4], 2
je 0x45fa51
xor edi, edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
mov dword [ebp - 0x74], ecx
lea ebx, [edi + 1]
jmp 0x45faa6
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call fcn.0045ffc0
mov edi, eax
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 4
push eax
mov ecx, ebx
mov dword [ebp - 0x78], 2
call fcn.0045eb90
push edi
push eax
push dword [ebp - 0x80]
lea eax, [ebp - 0x94]
mov dword [ebp - 4], 5
push eax
mov dword [ebp - 0x78], 6
call fcn.0045c1b0
mov edi, dword [ebp - 0x18]
add esp, 0x10
mov ecx, eax
mov dword [ebp - 0x74], eax
mov ebx, 0xe
mov eax, dword [ebp - 0x7c]
push ecx
mov ecx, eax
mov dword [ebp - 0x78], ebx
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.00451d30
mov ecx, dword [ebp - 0x74]
or ebx, 0x10
mov eax, dword [ecx + 8]
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 8], eax
test bl, 8
je 0x45fb0e
mov edx, dword [ebp - 0x90]
and ebx, 0xfffffff7
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], edx
test edx, edx
je 0x45fb0e
lea eax, [edx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x45fb0e
mov eax, dword [edx]
mov ecx, edx
call dword [eax]
mov ecx, dword [ebp - 0x74]
or edx, 0xffffffff
lea eax, [ecx + 8]
lock xadd dword [eax], edx
jne 0x45fb0e
mov eax, dword [ecx]
call dword [eax + 4]
test bl, 4
je 0x45fb39
and ebx, 0xfffffffb
cmp dword [ebp - 0x44], 0x10
jb 0x45fb27
push dword [ebp - 0x58]
call fcn.004a08c8
add esp, 4
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
test bl, 2
je 0x45fb64
and ebx, 0xfffffffd
cmp dword [ebp - 0x2c], 0x10
jb 0x45fb52
push dword [ebp - 0x40]
call fcn.004a08c8
add esp, 4
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 2
test bl, 1
je 0x45fb99
test edi, edi
je 0x45fb99
or ebx, 0xffffffff
lea eax, [edi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
jne 0x45fb99
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lea eax, [edi + 8]
lock xadd dword [eax], ebx
dec ebx
jne 0x45fb99
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
test esi, esi
je 0x45fba4
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a2017
mov esp, ebp
pop ebp
ret 0x10