Function at 0x1004baa0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100928be
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x100bb0a0]
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 - 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x1c], 0
push eax
mov dword [ebp - 0x14], 0
call fcn.1004cd60
mov edi, eax
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.10047be0
cmp dword [edi + 0x14], 0x10
mov esi, eax
jb 0x1004bb17
mov edi, dword [edi]
cmp dword [esi + 0x14], 0x10
jb 0x1004bb1f
mov esi, dword [esi]
test esi, esi
je 0x1004bb28
cmp byte [esi], 0
jne 0x1004bb2a
xor esi, esi
test edi, edi
je 0x1004bb33
cmp byte [edi], 0
jne 0x1004bb35
xor edi, edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1004daa0
mov edi, dword [ebp - 0x20]
mov ecx, eax
add esp, 8
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x1004bb7b
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.10002440
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
cmp eax, 0x10
jb 0x1004bbab
inc eax
lea ecx, [ebp - 0x98]
push eax
push dword [ebp - 0x98]
call fcn.10002440
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x20], esi
xor ecx, ecx
mov dword [ebp - 4], 1
cmp dword [edi], ecx
mov eax, fcn.1002a7d0
cmove eax, ecx
test eax, eax
je 0x1004bbdb
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x2c]
mov ebx, 1
jmp 0x1004bc27
lea eax, [ebp - 0x74]
mov ecx, ebx
push eax
call fcn.1004cd60
mov edi, eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 3
push eax
mov ecx, ebx
mov dword [ebp - 0x1c], 2
call fcn.10047be0
push edi
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x80]
mov dword [ebp - 4], 4
push eax
mov dword [ebp - 0x1c], 6
call fcn.10042f40
add esp, 0x10
mov ecx, eax
mov ebx, 0xe
mov edx, dword [ebp - 0x18]
or ebx, 0x10
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
test bl, 8
je 0x1004bc7a
mov edi, dword [ebp - 0x7c]
and ebx, 0xfffffff7
test edi, edi
je 0x1004bc7a
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x1004bc7a
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x1004bc7a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
test bl, 4
je 0x1004bca9
mov eax, dword [ebp - 0x48]
and ebx, 0xfffffffb
cmp eax, 0x10
jb 0x1004bc97
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.10002440
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
test bl, 2
je 0x1004bcd8
mov eax, dword [ebp - 0x60]
and ebx, 0xfffffffd
cmp eax, 0x10
jb 0x1004bcc6
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.10002440
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
test bl, 1
je 0x1004bd05
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x1004bd05
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x1004bd05
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x1004bd05
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
test esi, esi
je 0x1004bd10
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 0x18]
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.1004ebbb
mov esp, ebp
pop ebp
ret 0x10