Function at 0x495a80
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bc434
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x61f138]
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 - 0x80], eax
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x74], eax
lea eax, [ebx + 0x38]
mov dword [ebp - 0x68], 0
push eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x78], eax
call fcn.00441720
mov dword [ebp - 0x68], 0x20
lea eax, [ebx + 0x20]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x7c], eax
call fcn.00441720
cmp dword [ebp - 0x2c], 0x10
lea esi, [ebp - 0x40]
lea edi, [ebp - 0x28]
mov dword [ebp - 0x68], 0x60
cmovae esi, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 0x10
cmovae edi, dword [ebp - 0x28]
test edi, edi
je 0x495b1d
cmp byte [edi], 0
jne 0x495b1f
xor edi, edi
test esi, esi
je 0x495b28
cmp byte [esi], 0
jne 0x495b2a
xor esi, esi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [ebp - 0x6c]
push eax
push ebx
push esi
push edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
cmp eax, 0x273f
jg 0x495b90
je 0x495b89
cmp eax, 0x2726
jg 0x495b7e
je 0x495b77
test eax, eax
je 0x495b70
cmp eax, 8
jne 0x495bce
push ecx
push 0xe
lea ecx, [ebp - 0x64]
call fcn.00496680
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x64]
jmp 0x495bf8
xor edx, edx
mov byte [ebp - 0x60], dl
jmp 0x495bf3
mov edx, 0x2726
jmp 0x495bef
cmp eax, 0x273c
jne 0x495bce
mov edx, eax
jmp 0x495bef
mov edx, 0x273f
jmp 0x495bef
cmp eax, 0x2afa
jg 0x495bc7
je 0x495bc0
cmp eax, 0x277d
je 0x495bb9
cmp eax, 0x2af9
jne 0x495bce
push ecx
push eax
lea ecx, [ebp - 0x64]
call fcn.00496680
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x64]
jmp 0x495bf8
mov edx, 0x277d
jmp 0x495bef
mov edx, 0x2afa
jmp 0x495bef
cmp eax, 0x2afb
je 0x495bea
push 0x5e4408
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [ebp - 0x64]
call fcn.00436dd0
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x64]
jmp 0x495bf8
mov edx, 0x2afb
mov byte [ebp - 0x60], 1
mov eax, 0x5e4408
mov ebx, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x60]
mov dword [ebx], edx
mov edx, dword [ebp - 0x14]
mov dword [ebx + 4], ecx
mov dword [ebx + 8], eax
cmp edx, 0x10
jb 0x495c3a
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x495c30
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x495e65
push edx
push ecx
call fcn.0056eec5
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x495c84
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x495c7a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x495e6a
push edx
push ecx
call fcn.0056eec5
add esp, 8
mov esi, dword [ebp - 0x6c]
mov dword [ebp - 0x74], esi
mov dword [ebp - 4], 2
cmp dword [ebx], 0
je 0x495cb5
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x64]
mov ebx, 0x61
jmp 0x495d04
push dword [ebp - 0x78]
lea ecx, [ebp - 0x58]
call fcn.00441720
push dword [ebp - 0x7c]
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x68], 0xe2
call fcn.00441720
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 5
mov edx, dword [ebp - 0x6c]
lea ecx, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x68], 0x1e6
push eax
call fcn.00496240
add esp, 8
mov ecx, eax
mov ebx, 0x1ee
mov edx, dword [ebp - 0x70]
mov dword [edx], 0
mov dword [edx + 4], 0
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
mov dword [ecx + 8], 0
or ebx, 0x10
test bl, 8
je 0x495d75
and ebx, 0xfffffff7
mov dword [ebp - 0x68], ebx
mov dword [ebp - 4], 6
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x495d75
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x495d75
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x495d75
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [ebp - 4], 4
test bl, 4
je 0x495db8
mov edx, dword [ebp - 0x2c]
and ebx, 0xfffffffb
cmp edx, 0x10
jb 0x495db8
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x495dae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x495e6f
push edx
push ecx
call fcn.0056eec5
add esp, 8
mov dword [ebp - 4], 3
test bl, 2
je 0x495dfb
mov edx, dword [ebp - 0x44]
and ebx, 0xfffffffd
cmp edx, 0x10
jb 0x495dfb
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x495df1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x495e74
push edx
push ecx
call fcn.0056eec5
add esp, 8
mov dword [ebp - 4], 2
test bl, 1
je 0x495e39
and ebx, 0xfffffffe
mov dword [ebp - 0x68], ebx
mov byte [ebp - 4], 7
mov edi, dword [ebp - 0x60]
test edi, edi
je 0x495e39
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x495e39
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x495e39
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
test esi, esi
je 0x495e44
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 0x70]
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.0056eeb4
mov esp, ebp
pop ebp
ret 0x10
call fcn.00591dc6
call fcn.00591dc6
call fcn.00591dc6
call fcn.00591dc6
int3