Function at 0x437373
Capabilities:
Create tcp socket

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0x6c], 0xffffffff
mov byte [esi + 0x76], 1
je 0x436871
xor eax, eax
pop esi
ret
call fcn.00436400
test eax, eax
jne 0x4368d9
push 6
push 1
push 2
call dword [0x4d54f8]
cmp eax, 0xffffffff
mov dword [esi + 0x6c], eax
jne 0x43689d
call dword [0x4d5504]
test eax, eax
jne 0x4368d9
or eax, 0xffffffff
pop esi
ret
mov ecx, dword [esi + 0x68]
push 0
push 0x81da
push ecx
push eax
call dword [0x4d54d4]
cmp eax, 0xffffffff
je 0x43688e
mov eax, dword [esi + 0x58]
cmp eax, 0xffffffff
je 0x4368c0
test eax, eax
jne 0x4368d0
mov eax, dword [esi + 0x88]
push eax
mov eax, esi
call fcn.00436960
pop esi
ret
lea edx, [esi + 0x54]
push edx
call fcn.004368e0
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 0x437389
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
call fcn.00436400
test eax, eax
jne 0x437383
lea eax, [esi + 8]
push eax
lea edx, [esi + 4]
push edx
lea ebx, [esi + 0x10]
lea ecx, [esi + 0xc]
push ebx
call fcn.0043a620
add esp, 0xc
test eax, eax
mov dword [esi + 0x14], eax
jne 0x437427
mov edi, 1
push 0x50def4
mov dword [esi + 0x90], edi
call dword [0x4d5284]
mov dword [esi + 0x98], edi
mov eax, dword [0x50def4]
push esi
push eax
push 0x41d
push str.CAsyncTcpClient::Connect_AutoCheckProxy
call fcn.004360d0
mov edi, dword [esi + 0x7c]
add esp, 0x10
push 0
push ecx
mov dword [esp + 0x18], esp
mov eax, dword [esi + 0x78]
sub eax, 0x10
mov ebx, esp
call fcn.004355e0
add eax, 0x10
push esi
mov ecx, edi
mov dword [ebx], eax
call fcn.00436630
push 0
lea ecx, [esi + 0x24]
push ecx
lea edx, [esi + 0x3c]
push edx
push esi
call fcn.00437850
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 4
jmp 0x436860
cmp eax, 2
jne 0x4375bd
xor ecx, ecx
cmp dword [esi + 0x9c], ecx
push esi
setne cl
add ecx, eax
mov dword [esi + 0x90], ecx
mov edi, dword [0x50def4]
mov eax, edi
cdq
idiv ecx
push edi
push 0x42d
push str.CAsyncTcpClient::Connect_AutoCheckProxy
mov ebp, edx
call fcn.004360d0
add esp, 0x10
cmp dword [esi + 0x9c], 0
je 0x43755f
push esi
call fcn.004360b0
cmp dword [esi + 0x9c], 0
je 0x43755f
mov eax, ebp
sub eax, 0
je 0x43751d
sub eax, 1
je 0x4374de
sub eax, 1
jne 0x437608
mov edi, dword [esi + 0x7c]
push eax
mov eax, dword [esi + 0x78]
push ecx
sub eax, 0x10
mov dword [esp + 0x18], esp
mov ebx, esp
call fcn.004355e0
add eax, 0x10
push esi
mov ecx, edi
mov dword [ebx], eax
call fcn.00436630
push 0
lea eax, [esi + 0x24]
push eax
lea ecx, [esi + 0x3c]
push ecx
push esi
call fcn.00437850
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 4
jmp 0x436860
mov edx, dword [ebx]
mov eax, dword [esi + 0xc]
push 0
push edx
push ecx
sub eax, 0x10
mov dword [esp + 0x1c], esp
mov edi, esp
call fcn.00402a60
add eax, 0x10
mov dword [edi], eax
call fcn.004366c0
push 1
lea eax, [esi + 0x24]
push eax
lea ecx, [esi + 0x3c]
push ecx
push esi
call fcn.00437850
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 4
jmp 0x436860
mov eax, dword [esi + 0x78]
mov edi, dword [esi + 0x7c]
push 0
push ecx
sub eax, 0x10
mov dword [esp + 0x18], esp
mov ebx, esp
call fcn.004355e0
add eax, 0x10
push esi
mov ecx, edi
mov dword [ebx], eax
call fcn.00436630
push 0
lea edx, [esi + 0x24]
push edx
lea eax, [esi + 0x3c]
push eax
push esi
call fcn.00437850
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 4
jmp 0x437680
sub ebp, 0
je 0x43757b
sub ebp, 1
jne 0x437608
mov edi, dword [esi + 0x7c]
push ebp
push ecx
mov dword [esp + 0x18], esp
jmp 0x4373ef
mov eax, dword [esi + 0x78]
mov edi, dword [esi + 0x7c]
push 0
push ecx
sub eax, 0x10
mov dword [esp + 0x18], esp
mov ebx, esp
call fcn.004355e0
add eax, 0x10
push esi
mov ecx, edi
mov dword [ebx], eax
call fcn.00436630
push 0
lea eax, [esi + 0x24]
push eax
lea ecx, [esi + 0x3c]
push ecx
push esi
call fcn.00437850
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 4
jmp 0x437680
mov dword [esi + 0x90], 2
mov eax, dword [0x50def4]
mov edi, eax
and edi, 0x80000001
jns 0x4375db
dec edi
or edi, 0xfffffffe
inc edi
push esi
push eax
push 0x47a
push str.CAsyncTcpClient::Connect_AutoCheckProxy
call fcn.004360d0
add esp, 0x10
cmp dword [esi + 0x9c], 0
je 0x4375fe
push esi
call fcn.004360b0
sub edi, 0
je 0x437648
sub edi, 1
je 0x437616
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 4
jmp 0x437680
mov eax, dword [esi + 0x78]
mov edi, dword [esi + 0x7c]
push 0
push ecx
sub eax, 0x10
mov dword [esp + 0x18], esp
mov ebx, esp
call fcn.004355e0
add eax, 0x10
push esi
mov ecx, edi
mov dword [ebx], eax
call fcn.00436630
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 4
jmp 0x436860
mov eax, dword [esi + 0x78]
mov edi, dword [esi + 0x7c]
push 0
push ecx
sub eax, 0x10
mov dword [esp + 0x18], esp
mov ebx, esp
call fcn.004355e0
add eax, 0x10
push esi
mov ecx, edi
mov dword [ebx], eax
call fcn.00436630
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 4
jmp 0x437680
push ecx
push esi
mov esi, eax
push edi
xor edi, edi
cmp dword [esi + 0x6c], 0xffffffff
mov byte [esi + 0x76], 1
je 0x437697
pop edi
xor eax, eax
pop esi
pop ecx
ret
call fcn.00436400
cmp eax, edi
jne 0x43771b
lea eax, [esi + 8]
push eax
lea ecx, [esi + 4]
push ecx
lea edx, [esi + 0x10]
push edx
lea ecx, [esi + 0xc]
call fcn.0043a620
add esp, 0xc
cmp eax, edi
mov dword [esi + 0x14], eax
jne 0x4376ca
pop edi
mov eax, esi
pop esi
add esp, 4
jmp 0x436860
call fcn.00437100
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x437720
push edi
push edi
mov dword [esi + 0x1c], edi
call dword [0x4d52a0]
cmp eax, edi
je 0x437713
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x70]
cmp eax, 0xbb8
ja 0x4376fc
mov eax, 0xbb8
mov ecx, dword [esi + 0x68]
push edi
push eax
push 0x1399
push ecx
call dword [0x4d5400]
mov eax, edi
pop edi
pop esi
pop ecx
ret
call dword [0x4d5300]
mov edi, eax
pop edi
pop esi
pop ecx
ret