Function at 0x41e5b0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45842b
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4ec560]
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 esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x40]
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], eax
lea eax, [esi + 0x38]
mov dword [ebp - 0x44], 0
push eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x60], eax
call fcn.00404740
lea eax, [esi + 0x20]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x5c], eax
call fcn.00404740
cmp dword [ebp - 0x2c], 0x10
lea esi, [ebp - 0x40]
lea edi, [ebp - 0x28]
mov dword [ebp - 0x44], 0x60
cmovae esi, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 0x10
cmovae edi, dword [ebp - 0x28]
test edi, edi
je 0x41e646
cmp byte [edi], 0
jne 0x41e648
xor edi, edi
test esi, esi
je 0x41e651
cmp byte [esi], 0
jne 0x41e653
xor esi, esi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x50]
push esi
push edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0041f330
mov edx, dword [ebp - 0x14]
add esp, 8
mov ecx, dword [eax]
mov dword [ebx], ecx
mov eax, dword [eax + 4]
mov dword [ebx + 4], eax
cmp edx, 0x10
jb 0x41e6b7
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41e6ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41e6ad
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004385b2
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x41e706
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41e6fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41e6fc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004385b2
add esp, 8
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x50], esi
cmp dword [ebx], 0
mov dword [ebp - 4], 1
je 0x41e737
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
lea edx, [ebp - 0x58]
mov ebx, 0x61
jmp 0x41e787
push dword [ebp - 0x60]
lea ecx, [ebp - 0x28]
call fcn.00404740
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 3
mov dword [ebp - 0x44], 0xe2
call fcn.00404740
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x44], 0x1e6
push eax
push dword [ebp - 0x48]
lea eax, [ebp - 0x6c]
push eax
call fcn.0041c980
add esp, 0x10
mov edx, eax
mov ebx, 0x1ee
mov edi, dword [ebp - 0x4c]
or ebx, 0x10
mov dword [edi], 0
mov dword [edi + 4], 0
mov ecx, dword [edx]
mov dword [edi], ecx
mov eax, dword [edx + 4]
mov dword [edi + 4], eax
mov dword [edx], 0
mov dword [edx + 4], 0
mov eax, dword [edx + 8]
mov dword [edi + 8], eax
mov dword [edx + 8], 0
test bl, 8
je 0x41e7ee
mov edi, dword [ebp - 0x68]
and ebx, 0xfffffff7
test edi, edi
je 0x41e7ee
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x41e7ee
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x41e7ee
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
test bl, 4
je 0x41e82c
mov edx, dword [ebp - 0x2c]
and ebx, 0xfffffffb
cmp edx, 0x10
jb 0x41e82c
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41e822
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41e822
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004385b2
add esp, 8
test bl, 2
je 0x41e86a
mov edx, dword [ebp - 0x14]
and ebx, 0xfffffffd
cmp edx, 0x10
jb 0x41e86a
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41e860
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41e860
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004385b2
add esp, 8
test bl, 1
je 0x41e897
mov edi, dword [ebp - 0x54]
test edi, edi
je 0x41e897
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x41e897
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x41e897
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
test esi, esi
je 0x41e8a2
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 0x4c]
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.004385c0
mov esp, ebp
pop ebp
ret 0x10