Function at 0x503533
Capabilities:
Create tcp socket
Create thread

Disassembly:
push esi
push str.CAsyncTcpClient::ConnectDirect
push str.Enter__s_VOID
mov esi, eax
call fcn.00501f90
add esp, 8
cmp dword [esi + 0x6c], 0xffffffff
mov byte [esi + 0x76], 1
je 0x5028f3
xor eax, eax
pop esi
ret
call fcn.005023e0
test eax, eax
jne 0x50295b
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x6c], eax
jne 0x50291f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x50295b
or eax, 0xffffffff
pop esi
ret
mov ecx, dword [esi + 0x68]
push 0
push 0x81da
push ecx
push eax
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
je 0x502910
mov eax, dword [esi + 0x58]
cmp eax, 0xffffffff
je 0x502942
test eax, eax
jne 0x502952
mov eax, dword [esi + 0x88]
push eax
mov eax, esi
call fcn.005029f0
pop esi
ret
lea edx, [esi + 0x54]
push edx
call fcn.00502960
pop esi
ret
push ecx
push ebx
push ebp
push esi
mov esi, ecx
cmp dword [esi + 0x6c], 0xffffffff
push edi
mov byte [esi + 0x76], 1
je 0x503549
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
call fcn.005023e0
test eax, eax
jne 0x503543
lea eax, [esi + 8]
push eax
lea edx, [esi + 4]
push edx
lea ebx, [esi + 0x10]
lea ecx, [esi + 0xc]
push ebx
call fcn.00506fd0
add esp, 0xc
test eax, eax
mov dword [esi + 0x14], eax
jne 0x5035eb
mov edi, 1
push 0x679078
mov dword [esi + 0x90], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push esi
mov dword [esi + 0x98], edi
mov eax, dword [0x679078]
push eax
push 0x41d
push str.CAsyncTcpClient::Connect_AutoCheckProxy
push str._s__d_RetrysCount___d_this___d__n
call fcn.00501f90
mov ecx, dword [esi + 0x7c]
add esp, 0x14
push 0
push ecx
push ecx
mov dword [esp + 0x1c], esp
mov eax, dword [esi + 0x78]
sub eax, 0x10
mov edi, esp
call fcn.00478bf0
add eax, 0x10
push esi
mov dword [edi], eax
call fcn.00502640
push 0
lea edx, [esi + 0x24]
push edx
lea eax, [esi + 0x3c]
push eax
push esi
call fcn.005039c0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 4
jmp 0x5028d0
cmp eax, 2
jne 0x5036fc
xor ecx, ecx
cmp dword [esi + 0x9c], ecx
push esi
setne cl
add ecx, eax
mov dword [esi + 0x90], ecx
mov edi, dword [0x679078]
mov eax, edi
cdq
idiv ecx
push edi
push 0x42d
push str.CAsyncTcpClient::Connect_AutoCheckProxy
push str._s__d_RetrysCount___d_this___d__n
mov ebp, edx
call fcn.00501f90
add esp, 0x14
cmp dword [esi + 0x9c], 0
je 0x5036d6
push esi
call fcn.00501f70
cmp dword [esi + 0x9c], 0
je 0x5036d6
mov eax, ebp
sub eax, 0
je 0x503695
sub eax, 1
je 0x50366d
sub eax, 1
jne 0x5036c8
mov ecx, dword [esi + 0x7c]
push eax
push ecx
push ecx
mov dword [esp + 0x1c], esp
jmp 0x5035b5
mov ecx, dword [ebx]
mov eax, dword [esi + 0xc]
push 0
push ecx
push ecx
sub eax, 0x10
mov dword [esp + 0x1c], esp
mov edi, esp
call fcn.0040a210
add eax, 0x10
mov dword [edi], eax
call fcn.005026e0
push 1
jmp 0x5035cf
mov ecx, dword [esi + 0x7c]
push 0
push ecx
push ecx
mov dword [esp + 0x1c], esp
mov eax, dword [esi + 0x78]
sub eax, 0x10
mov edi, esp
call fcn.00478bf0
add eax, 0x10
push esi
mov dword [edi], eax
call fcn.00502640
push 0
lea edx, [esi + 0x24]
push edx
lea eax, [esi + 0x3c]
push eax
push esi
call fcn.005039c0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 4
jmp 0x5037e0
sub ebp, 0
je 0x5036ef
sub ebp, 1
jne 0x5036c8
mov ecx, dword [esi + 0x7c]
push ebp
push ecx
push ecx
mov dword [esp + 0x1c], esp
jmp 0x5035b5
mov ecx, dword [esi + 0x7c]
push 0
push ecx
push ecx
mov dword [esp + 0x1c], esp
jmp 0x5036a0
mov dword [esi + 0x90], 2
mov eax, dword [0x679078]
mov edi, eax
and edi, 0x80000001
jns 0x50371a
dec edi
or edi, 0xfffffffe
inc edi
push esi
push eax
push 0x47a
push str.CAsyncTcpClient::Connect_AutoCheckProxy
push str._s__d_RetrysCount___d_this___d__n
call fcn.00501f90
add esp, 0x14
cmp dword [esi + 0x9c], 0
je 0x503742
push esi
call fcn.00501f70
sub edi, 0
je 0x503792
sub edi, 1
jne 0x5036c8
push str.CAsyncTcpClient::Connect_AutoCheckProxy
push str.Enter__s_Sockets_Connect_7__n
call fcn.00501f90
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi + 0x78]
add esp, 8
push edi
push ecx
push ecx
sub eax, 0x10
mov dword [esp + 0x1c], esp
mov edi, esp
call fcn.00478bf0
add eax, 0x10
push esi
mov dword [edi], eax
call fcn.00502640
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 4
jmp 0x5028d0
push str.CAsyncTcpClient::Connect_AutoCheckProxy
push str.Enter__s_Sockets_Connect_6__n
call fcn.00501f90
mov edx, dword [esi + 0x7c]
mov eax, dword [esi + 0x78]
add esp, 8
push 0
push edx
push ecx
sub eax, 0x10
mov dword [esp + 0x1c], esp
mov edi, esp
call fcn.00478bf0
add eax, 0x10
push esi
mov dword [edi], eax
call fcn.00502640
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 4
jmp 0x5037e0
push ecx
push esi
mov esi, eax
push edi
xor edi, edi
cmp dword [esi + 0x6c], 0xffffffff
mov byte [esi + 0x76], 1
je 0x5037f7
pop edi
xor eax, eax
pop esi
pop ecx
ret
call fcn.005023e0
cmp eax, edi
jne 0x50387b
lea eax, [esi + 8]
push eax
lea ecx, [esi + 4]
push ecx
lea edx, [esi + 0x10]
push edx
lea ecx, [esi + 0xc]
call fcn.00506fd0
add esp, 0xc
cmp eax, edi
mov dword [esi + 0x14], eax
jne 0x50382a
pop edi
mov eax, esi
pop esi
add esp, 4
jmp 0x5028d0
call fcn.005032c0
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x503880
push edi
push edi
mov dword [esi + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
je 0x503873
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x70]
cmp eax, 0xbb8
ja 0x50385c
mov eax, 0xbb8
mov ecx, dword [esi + 0x68]
push edi
push eax
push 0x1399
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, edi
pop edi
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
pop edi
pop esi
pop ecx
ret