Function at 0x10033b10
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e8a4d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x102f8384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [ebx + 0x90]
call fcn.10031e70
mov edx, dword [ebx + 0x1c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 1
mov dword [eax + 0x1c], edx
cmp dword [ebx + 0x294], 0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
je 0x10033bce
mov esi, dword [ebx + 0x314]
mov eax, dword [ebx + 0x2d4]
sub eax, esi
test eax, eax
jle 0x10033bce
nop dword [eax + eax]
xor edx, edx
mov eax, esi
div dword [ebx + 0x290]
mov eax, dword [ebx + 0x294]
mov ecx, edx
mov edi, dword [eax + ecx*4]
lea edx, [eax + ecx*4]
mov dword [ebp - 0x14], ecx
cmp edi, 0xf
jbe 0x10033bb1
mov ecx, dword [ebp - 0x10]
mov eax, edi
lock cmpxchg dword [edx], ecx
cmp eax, edi
je 0x10033cd7
lea ecx, [esi + 1]
mov eax, esi
lea edx, [ebx + 0x314]
lock cmpxchg dword [edx], ecx
mov esi, dword [edx]
mov eax, dword [ebx + 0x2d4]
sub eax, esi
test eax, eax
jg 0x10033b80
lea eax, [ebx + 0x90]
push eax
lea eax, [ebx + 0x8c]
push eax
call fcn.10030170
add esp, 8
mov edi, eax
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x90]
mov dword [edi], 0
mov dword [edi + 8], eax
mov dword [edi + 0x4c], 0
mov dword [edi + 0x3c], 1
mov dword [edi + 0x40], 1
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.1002c1c0
mov eax, dword [ebp - 0x1c]
lea esi, [edi + 0x58]
push esi
mov dword [edi + 0x8c], eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
call sub.WINMM.dll_timeGetTime
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10033d75
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [eax - 1]
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jle 0x10033d75
mov eax, dword [edi + 0x90]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
sub eax, dword [esi - 4]
mov dword [ebp - 0x10], eax
mov eax, esi
lea esi, [edi + 0x58]
mov eax, dword [eax - 8]
sub eax, ecx
or dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
jge 0x10033d3c
push ecx
lea ecx, [edi + 0x90]
call fcn.1002ca90
mov eax, dword [edi + 0x90]
mov ecx, dword [ebp - 0x1c]
jmp 0x10033d3f
lea ecx, [esi + 1]
mov eax, esi
lea edx, [ebx + 0x314]
lock cmpxchg dword [edx], ecx
push 0
push dword [edi + 0x34]
call fcn.1002da20
mov ecx, dword [ebx + 0x294]
add esp, 8
cmp eax, dword [ebx + 0x20]
jb 0x10033d1f
test ecx, ecx
je 0x10033f61
mov eax, dword [ebp - 0x14]
cmp dword [ecx + eax*4], 1
jne 0x10033f61
mov dword [ecx + eax*4], 0
jmp 0x10033be6
test ecx, ecx
je 0x10033f61
mov eax, dword [ebp - 0x14]
cmp dword [ecx + eax*4], 1
jne 0x10033f61
mov dword [ecx + eax*4], edi
jmp 0x10033bce
mov eax, dword [ebp - 0x14]
push 0
push 0
push ecx
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [edi + 0x90]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [edx - 8]
jg 0x10033f6b
mov dword [edx - 0xc], ecx
mov eax, dword [edi + 0x90]
mov byte [ecx + eax], 0
jmp 0x10033d80
lea ecx, [edi + 0x90]
call fcn.1002c1c0
mov ecx, dword [ebp + 0x14]
lea edx, [edi + 0xc]
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x28], eax
mov dword [ebp + 0xc], 0x1c
cmp ecx, edx
je 0x10033daf
cmp word [ecx], 2
mov eax, 0x10
cmovne eax, dword [ebp + 0xc]
push eax
push ecx
push edx
call fcn.101c0150
add esp, 0xc
cmp dword [ebx + 0x16c], 0
je 0x10033f61
mov eax, dword [ebp + 8]
xor edx, edx
dec eax
mov ecx, dword [ebx + 0x1ac]
div dword [ebx + 0x168]
movzx ecx, byte [ecx + edx]
cmp eax, ecx
jne 0x10033f61
mov eax, dword [ebx + 0x16c]
cmp dword [eax + edx*4], 1
jne 0x10033f61
push 0
push 0
push edi
push dword [ebp + 8]
lea ecx, [ebx + 0x168]
call fcn.10032420
test eax, eax
je 0x10033f61
push 1
push dword [edi + 0x8c]
call fcn.1002f070
add esp, 8
test eax, eax
jne 0x10033f61
cmp dword [ebx + 0x54], eax
je 0x10033e5f
push eax
push edi
push dword [ebx + 0x58]
push dword [edi + 0x8c]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x10033e54
push dword [ebp - 0x18]
mov eax, dword [ebp + 0x14]
push eax
push dword [edi + 0x8c]
push dword [ebx + 0x48]
call fcn.1002ea90
add esp, 0x10
jmp 0x10033f0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10033f0e
mov eax, dword [ebp + 0x14]
mov edx, 0x1c
mov ecx, 0x10
cmp word [eax], 2
cmovne ecx, edx
push ecx
push eax
push dword [edi + 0x8c]
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp + 8], eax
test eax, eax
je 0x10033ebb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
je 0x10033e9d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x10033f0e
cmp dword [ebp + 8], 0xffffffff
jne 0x10033f1e
push dword [ebx + 0x10]
push dword [edi + 0x8c]
call fcn.1002f1f0
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
jne 0x10033f1e
push 0
push edi
push dword [ebx + 0x58]
push dword [edi + 0x8c]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x10033f07
push edi
mov ecx, ebx
mov dword [edi + 0x4c], 1
call fcn.10035dc0
cmp eax, 2
je 0x10033ef4
push dword [ebp - 0x18]
mov ecx, ebx
push edi
call fcn.10034430
xor ecx, ecx
jmp 0x10033f13
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
test eax, eax
mov ecx, 0x4c7
cmove eax, ecx
jmp 0x10033f0e
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov ecx, 1
mov dword [ebp + 8], eax
test eax, eax
je 0x10033f43
test ecx, ecx
je 0x10033f3a
push 0
push 0
push 0
push edi
mov ecx, ebx
call fcn.10033140
push dword [ebp - 0x18]
lea ecx, [ebx + 0x90]
call fcn.10031fe0
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x80004005
call fcn.1002bf40
push 0x80070057
call fcn.1002bf40
int3