Function at 0x10026d80
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068770
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x1008600c]
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 - 0x64], eax
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x68], eax
lea eax, [ebx + 0x38]
mov dword [ebp - 0x5c], 0
push eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x70], eax
call fcn.10003d70
mov dword [ebp - 4], 0
lea eax, [ebx + 0x20]
cmp dword [ebp - 0x2c], 0x10
lea esi, [ebp - 0x40]
push eax
cmovae esi, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x6c], eax
call fcn.10003d70
cmp dword [ebp - 0x14], 0x10
lea edi, [ebp - 0x28]
mov dword [ebp - 0x5c], 0x60
cmovae edi, dword [ebp - 0x28]
test edi, edi
je 0x10026e16
cmp byte [edi], 0
jne 0x10026e18
xor edi, edi
test esi, esi
je 0x10026e21
cmp byte [esi], 0
jne 0x10026e23
xor esi, esi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [ebp - 0x60]
push eax
push ebx
push esi
push edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
cmp eax, 0x273f
jg 0x10026ea8
je 0x10026e9a
cmp eax, 0x2726
jg 0x10026e85
je 0x10026e74
test eax, eax
je 0x10026e68
cmp eax, 8
jne 0x10026ef0
call fcn.10002f00
mov esi, eax
mov eax, 0xe
jmp 0x10026f0b
xor eax, eax
mov esi, 0x10086b38
jmp 0x10026f0b
call fcn.10002f00
mov esi, eax
mov eax, 0x2726
jmp 0x10026f0b
cmp eax, 0x273c
jne 0x10026ef0
call fcn.10002f00
mov esi, eax
mov eax, 0x273c
jmp 0x10026f0b
call fcn.10002f00
mov esi, eax
mov eax, 0x273f
jmp 0x10026f0b
cmp eax, 0x2afa
jg 0x10026ee9
je 0x10026edb
cmp eax, 0x277d
je 0x10026ecd
cmp eax, 0x2af9
jne 0x10026ef0
call fcn.10002f00
mov esi, eax
mov eax, 0x2af9
jmp 0x10026f0b
call fcn.10002f00
mov esi, eax
mov eax, 0x277d
jmp 0x10026f0b
call fcn.10002f00
mov esi, eax
mov eax, 0x2afa
jmp 0x10026f0b
cmp eax, 0x2afb
je 0x10026eff
call fcn.10002f00
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x10026f0b
call fcn.10002f00
mov esi, eax
mov eax, 0x2afb
mov ebx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x14]
mov dword [ebx], eax
mov dword [ebx + 4], esi
cmp edx, 0x10
jb 0x10026f47
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10026f3d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002715a
push edx
push ecx
call fcn.10041ac4
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x10026f94
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10026f8a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002715a
push edx
push ecx
call fcn.10041ac4
add esp, 8
mov esi, dword [ebp - 0x60]
mov dword [ebp - 0x68], esi
mov dword [ebp - 4], 1
cmp dword [ebx], 0
je 0x10026fc5
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
mov ebx, 0x61
jmp 0x10027014
push dword [ebp - 0x70]
lea ecx, [ebp - 0x58]
call fcn.10003d70
push dword [ebp - 0x6c]
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x5c], 0xe2
call fcn.10003d70
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 4
mov edx, dword [ebp - 0x60]
lea ecx, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x5c], 0x1e6
push eax
call fcn.10027170
add esp, 8
mov ecx, eax
mov ebx, 0x1ee
mov edx, dword [ebp - 0x64]
or ebx, 0x10
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 eax, dword [ecx + 8]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [edx + 8], eax
mov dword [ecx + 8], 0
test bl, 8
je 0x1002707b
mov edi, dword [ebp - 0x78]
and ebx, 0xfffffff7
test edi, edi
je 0x1002707b
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x1002707b
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x1002707b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
test bl, 4
je 0x100270b7
mov edx, dword [ebp - 0x2c]
and ebx, 0xfffffffb
cmp edx, 0x10
jb 0x100270b7
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100270ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002715f
push edx
push ecx
call fcn.10041ac4
add esp, 8
test bl, 2
je 0x10027101
mov edx, dword [ebp - 0x44]
and ebx, 0xfffffffd
cmp edx, 0x10
jb 0x100270ef
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100270e5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002715f
push edx
push ecx
call fcn.10041ac4
add esp, 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
test bl, 1
je 0x1002712e
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x1002712e
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x1002712e
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x1002712e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
test esi, esi
je 0x10027139
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 0x64]
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.1004144e
mov esp, ebp
pop ebp
ret 0x10
call fcn.1004a021
call fcn.1004a021
int3