Function at 0x100130c0
Capabilities:
Resolve dns
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, dword [0x100b5004]
xor eax, esp
mov dword [esp + 0xa4], eax
movzx eax, word [ebp + 0xc]
xorps xmm0, xmm0
push esi
mov esi, dword [ebp + 8]
push edi
push eax
lea eax, [esp + 0xa0]
movaps xmmword [esp + 0x74], xmm0
push 0x100aabb8
push eax
mov edi, ecx
mov dword [esp + 0x78], 0
movaps xmmword [esp + 0x8c], xmm0
mov dword [esp + 0x80], 2
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0xa4]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x100133f6
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x68], ecx
test ecx, ecx
je 0x100133f6
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [edi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x18], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esp + 0x48], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x2c], eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x4c], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x30], eax
mov eax, dword [sym.imp.WS2_32.dll_shutdown]
mov dword [esp + 0x40], eax
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esp + 0x44], eax
mov eax, dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov dword [esp + 0x50], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [esp + 0x64], eax
mov eax, dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [esp + 0x54], eax
mov eax, dword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x5c], eax
push 0xc8
call fcn.10015071
mov esi, eax
add esp, 4
test esi, esi
je 0x100131e3
mov ecx, dword [esp + 0x6c]
mov eax, dword [ecx + 0x1c]
jmp 0x1001370e
mov eax, dword [esp + 0x6c]
mov esi, dword [0x100df518]
push esi
mov eax, dword [eax + 0x18]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
call dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
cmp ecx, dword [0x100df520]
jae 0x1001340c
mov eax, dword [0x100df51c]
cmp dword [eax + ecx*8], 0
je 0x1001340c
mov edi, dword [eax + ecx*8 + 4]
push esi
mov dword [esp + 0x28], edi
call dword [esp + 0x18]
mov esi, edi
mov eax, dword [esi + 0x458]
sub eax, 0x66
je 0x10013254
sub eax, 0x62
je 0x10013261
sub eax, 1
je 0x10013254
mov eax, 0x54f
mov dword [esp + 0x20], eax
jmp 0x10013417
mov dword [esp + 0x20], 0x32
jmp 0x10013417
push 0x14
call fcn.1007bcba
add esp, 4
mov edi, eax
push 0
push 0
push 1
push 0
call dword [esp + 0x58]
push ecx
push edi
push ecx
push dword [esp + 0x44]
mov dword [edi + 0x10], eax
mov ecx, esi
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.10015e2d
mov dword [esp + 0x20], eax
test eax, eax
je 0x100132ff
add esi, 0x490
push esi
call dword [esp + 0x1c]
mov eax, dword [edi + 0x10]
test eax, eax
je 0x100132be
push eax
call dword [esp + 0x30]
mov dword [edi + 0x10], 0
push 0x14
push edi
mov dword [edi], 0xcccccccc
call fcn.1007bcac
mov edi, dword [esp + 0x2c]
add esp, 8
push esi
mov dword [edi + 0x41a1c], 0
call dword [esp + 0x18]
push esi
call dword [esp + 0x1c]
push esi
mov dword [edi + 0x45c], 7
call dword [esp + 0x18]
mov eax, dword [esp + 0x20]
jmp 0x100133d5
push dword [esi + 0x4195c]
push dword [edi + 0x10]
call dword [esp + 0x54]
test eax, eax
je 0x10013327
cmp eax, 0x102
je 0x1001331d
call dword [esp + 0x30]
jmp 0x10013329
mov dword [esp + 0x20], 0x274c
jmp 0x10013331
mov eax, dword [edi]
mov dword [esp + 0x20], eax
test eax, eax
je 0x1001338d
add esi, 0x490
push esi
call dword [esp + 0x1c]
mov eax, dword [edi + 0x10]
test eax, eax
je 0x1001334f
push eax
call dword [esp + 0x30]
mov dword [edi + 0x10], 0
push 0x14
push edi
mov dword [edi], 0xcccccccc
call fcn.1007bcac
mov edi, dword [esp + 0x2c]
add esp, 8
push esi
mov dword [edi + 0x41a1c], 0
call dword [esp + 0x18]
push esi
call dword [esp + 0x1c]
push esi
mov dword [edi + 0x45c], 7
call dword [esp + 0x18]
mov eax, dword [esp + 0x20]
jmp 0x100133d5
add esi, 0x490
push esi
call dword [esp + 0x1c]
mov eax, dword [edi + 0x10]
test eax, eax
je 0x100133ab
push eax
call dword [esp + 0x30]
mov dword [edi + 0x10], 0
push 0x14
push edi
mov dword [edi], 0xcccccccc
call fcn.1007bcac
mov edi, dword [esp + 0x2c]
add esp, 8
push esi
mov dword [edi + 0x41a1c], 0
call dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x20], eax
test eax, eax
jne 0x10013417
push eax
mov eax, dword [esp + 0x38]
push 1
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
xor esi, esi
push dword [esp + 0x68]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, esi
mov ecx, dword [esp + 0xac]
pop edi
pop esi
xor ecx, esp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret 8
push esi
call edi
mov dword [esp + 0x20], 6
mov eax, dword [esp + 0x34]
mov esi, dword [0x100df528]
push esi
mov dword [esp + 0x28], esi
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
call dword [esp + 0x1c]
mov edi, dword [0x100df518]
push edi
call dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
cmp eax, dword [0x100df520]
jae 0x100136f9
lea ecx, [eax*8]
mov eax, dword [0x100df51c]
mov dword [esp + 0x3c], ecx
cmp dword [ecx + eax], 0
je 0x100136f9
mov dword [ecx + eax], 2
mov eax, dword [ecx + eax + 4]
mov dword [esp + 0x1c], eax
mov ecx, dword [eax + 0x458]
sub ecx, 0x66
je 0x100136ad
sub ecx, 0x62
je 0x10013541
sub ecx, 1
jne 0x100136f9
lea esi, [eax + 0x490]
push esi
call dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x450], 0
je 0x100134b7
push esi
call dword [esp + 0x18]
jmp 0x100136f5
mov ecx, dword [eax + 0x448]
cmp ecx, 0xffffffff
je 0x100134e5
push 2
push ecx
call dword [esp + 0x48]
mov eax, dword [esp + 0x1c]
push dword [eax + 0x448]
call dword [esp + 0x48]
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x448], 0xffffffff
push ecx
mov ecx, eax
mov dword [eax + 0x45c], 7
call fcn.10015d45
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x8c0], 0
je 0x100136e0
nop dword [eax + eax]
mov edx, dword [eax + 0x8c0]
test edx, edx
je 0x10013533
mov ecx, dword [eax + 0x8bc]
inc ecx
and ecx, 0x1f
mov dword [eax + 0x8bc], ecx
lea ecx, [edx - 1]
mov dword [eax + 0x8c0], ecx
cmp dword [eax + 0x8c0], 0
jne 0x10013510
jmp 0x100136e0
lea esi, [eax + 0x490]
push esi
call dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
push 0
call fcn.100169df
push esi
test eax, eax
je 0x10013565
call dword [esp + 0x18]
jmp 0x100136f5
call dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x41a1c]
mov dword [esp + 0x58], ecx
test ecx, ecx
jne 0x10013587
cmp dword [eax + 0x41a20], ecx
je 0x1001366a
mov edx, dword [eax + 0x41a18]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0x41a20]
mov dword [esp + 0x38], edx
mov dword [ecx], 0x2745
mov dword [ecx + 4], 0
mov edx, dword [eax + 0x488]
test edx, edx
je 0x100135c5
push ecx
push dword [eax + 0x48c]
push 0
push edx
call dword [esp + 0x60]
jmp 0x1001364a
cmp dword [esp + 0x38], 0
je 0x10013643
push dword [esp + 0x28]
push 0
push 0x10
call dword [esp + 0x60]
mov dword [esp + 0x28], eax
test eax, eax
je 0x1001364e
push 0x14
call fcn.1007bcba
mov ecx, dword [esp + 0x3c]
add esp, 4
mov dword [esp + 0x60], eax
mov dword [eax], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 4], ecx
mov edx, dword [ecx]
test edx, edx
je 0x10013605
xor ecx, ecx
jmp 0x10013608
mov ecx, dword [ecx + 4]
push eax
push dword [esp + 0x2c]
mov dword [eax + 8], ecx
push 0x10015475
mov dword [eax + 0x10], edx
mov dword [eax + 0xc], 0
call dword [esp + 0x68]
test eax, eax
jne 0x10013639
call dword [esp + 0x30]
push 0x14
push dword [esp + 0x64]
call fcn.1007bcac
add esp, 8
push dword [esp + 0x28]
call dword [esp + 0x30]
jmp 0x10013652
push dword [ecx + 0x10]
call dword [esp + 0x68]
test eax, eax
jne 0x10013652
call dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x41a1c], 0
mov dword [eax + 0x41a20], 0
push esi
call dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x448]
cmp ecx, 0xffffffff
je 0x100136a1
push 2
push ecx
call dword [esp + 0x48]
mov eax, dword [esp + 0x1c]
push dword [eax + 0x448]
call dword [esp + 0x48]
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x448], 0xffffffff
mov dword [eax + 0x45c], 7
jmp 0x100136e0
lea esi, [eax + 0x490]
push esi
call dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
push 0
call fcn.100169df
test eax, eax
je 0x100136ce
push esi
call dword [esp + 0x18]
jmp 0x100136f5
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x44c]
add eax, 0x450
lock dec dword [eax]
push esi
call dword [esp + 0x18]
mov eax, dword [0x100df51c]
mov ecx, dword [esp + 0x3c]
mov dword [ecx + eax], 4
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x18]
call edi
push esi
call edi
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x20]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x6c], eax
test eax, eax
je 0x100133ea
mov ecx, dword [esp + 0x34]
jmp 0x100131c4