Function at 0x41b3b0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4faefb
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x591430]
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]
lea ecx, [ebp - 0x40]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x50], eax
lea eax, [ebx + 0x38]
mov dword [ebp - 0x44], 0
push eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x54], eax
call fcn.004030b0
lea eax, [ebx + 0x20]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x58], eax
call fcn.004030b0
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 0x41b443
cmp byte [edi], 0
jne 0x41b445
xor edi, edi
test esi, esi
je 0x41b44e
cmp byte [esi], 0
jne 0x41b450
xor esi, esi
push 0
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
lea eax, [ebp - 0x48]
push eax
push ebx
push esi
push edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0041df30
mov ebx, dword [ebp - 0x50]
add esp, 8
mov ecx, dword [eax]
mov dword [ebx], ecx
mov eax, dword [eax + 4]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x41b4c5
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x41b4bc
test cl, 0x1f
jne 0x41b542
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x41b542
sub ecx, eax
cmp ecx, 4
jb 0x41b542
cmp ecx, 0x23
ja 0x41b542
mov ecx, eax
push ecx
call fcn.004457a0
add esp, 4
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x41b514
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x1000
jb 0x41b50b
test cl, 0x1f
jne 0x41b542
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x41b542
sub ecx, eax
cmp ecx, 4
jb 0x41b542
cmp ecx, 0x23
ja 0x41b542
mov ecx, eax
push ecx
call fcn.004457a0
add esp, 4
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x50], esi
xor ecx, ecx
mov dword [ebp - 4], 1
cmp dword [ebx], ecx
mov eax, fcn.0040e7c0
cmove eax, ecx
test eax, eax
je 0x41b547
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], ecx
lea edx, [ebp - 0x64]
lea ebx, [ecx + 0x61]
jmp 0x41b597
call fcn.004d588f
push dword [ebp - 0x54]
lea ecx, [ebp - 0x28]
call fcn.004030b0
push dword [ebp - 0x58]
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 3
mov dword [ebp - 0x44], 0xe2
call fcn.004030b0
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 - 0x70]
push eax
call fcn.004164e0
add esp, 0x10
mov edx, eax
mov ebx, 0x1ee
mov edi, dword [ebp - 0x4c]
or ebx, 0x10
mov ecx, dword [edx]
mov dword [edi], ecx
mov ecx, dword [edx + 4]
mov dword [edi + 4], ecx
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 0x41b5f1
mov edi, dword [ebp - 0x6c]
and ebx, 0xfffffff7
test edi, edi
je 0x41b5f1
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x41b5f1
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x41b5f1
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
test bl, 4
je 0x41b601
lea ecx, [ebp - 0x40]
and ebx, 0xfffffffb
call fcn.00403970
test bl, 2
je 0x41b611
lea ecx, [ebp - 0x28]
and ebx, 0xfffffffd
call fcn.00403970
test bl, 1
je 0x41b63e
mov edi, dword [ebp - 0x60]
test edi, edi
je 0x41b63e
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x41b63e
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x41b63e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
test esi, esi
je 0x41b649
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.004b7be0
mov esp, ebp
pop ebp
ret 0x10