Function at 0x5b29b0
Capabilities:
Connect socket

Disassembly:
push 0xffffffffffffffff
push 0x639512
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x72d150]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push 1
push ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], ebx
call fcn.0048f580
mov ebp, dword [esp + 0x50]
xor edi, edi
mov dword [esp + 0x48], ebx
cmp ebp, ebx
je 0x5b2c77
lea ecx, [ecx]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 4]
push 1
push ebx
push ebx
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x5b2a52
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 9
push str.WSASocket
lea ecx, [esp + 0x2c]
mov edi, eax
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00403490
mov byte [esp + 0x48], 1
push 0xffffffffffffffff
jmp 0x5b2c06
call fcn.004895c0
test al, al
jne 0x5b2a99
call fcn.004895a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
test eax, eax
je 0x5b2a99
call fcn.004895a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
mov edx, dword [esi + 8]
mov ecx, dword [eax]
push edx
push str.Socket_is_created__sock:__i
push 9
push 0x50
push str.E:PnzBsPnzBsTempFBCVersion037_00SrcPnzCodePnzNetProtocolPnzSocket.cpp
push ebx
push eax
mov eax, dword [ecx + 0xc]
call eax
add esp, 0x1c
lea ecx, [esp + 0x18]
call fcn.0048f570
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 8]
push 0x10
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x5b2b17
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0xe
push 0x6b7f9c
lea ecx, [esp + 0x2c]
mov edi, eax
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00403490
mov eax, dword [esi + 8]
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x50], 2
call fcn.005b1400
add esp, 8
cmp dword [esp + 0x3c], 0x10
mov byte [esp + 0x48], bl
jb 0x5b2c65
mov edx, dword [esp + 0x28]
push edx
call fcn.005be738
add esp, 4
jmp 0x5b2c65
call fcn.004895c0
test al, al
jne 0x5b2b8e
call fcn.004895a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
test eax, eax
je 0x5b2b8e
call fcn.004895a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
push ecx
mov edi, eax
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.005b1590
add esp, 0xc
or dword [esp + 0x14], 1
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x48], 3
jb 0x5b2b6c
mov eax, dword [eax + 4]
jmp 0x5b2b6f
add eax, 4
mov edx, dword [esi + 8]
mov ecx, dword [edi]
push eax
mov eax, dword [ecx + 0xc]
push edx
push str.Start_connection__sock:__i__addr:__s
push 9
push 0x5d
push str.E:PnzBsPnzBsTempFBCVersion037_00SrcPnzCodePnzNetProtocolPnzSocket.cpp
push ebx
push edi
call eax
add esp, 0x20
test byte [esp + 0x14], 1
mov dword [esp + 0x48], ebx
je 0x5b2bb2
and dword [esp + 0x14], 0xfffffffe
cmp dword [esp + 0x3c], 0x10
jb 0x5b2bb2
mov ecx, dword [esp + 0x28]
push ecx
call fcn.005be738
add esp, 4
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
mov ecx, dword [esi + 8]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x5b2ca7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
je 0x5b2c2d
push 7
push str.connect
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00403490
mov edx, dword [esi + 8]
mov byte [esp + 0x48], 5
push edx
lea eax, [esp + 0x28]
push eax
call fcn.005b1400
add esp, 8
cmp dword [esp + 0x3c], 0x10
mov byte [esp + 0x48], bl
jb 0x5b2c65
mov ecx, dword [esp + 0x28]
push ecx
call fcn.005be738
add esp, 4
jmp 0x5b2c65
fld dword [esp + 0x58]
mov eax, dword [esp + 0x54]
lea edx, [esp + 0x50]
push edx
push ecx
fstp dword [esp]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.005b2680
test al, al
jne 0x5b2d30
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp byte [esp + 0x50], bl
jne 0x5b2d48
mov ecx, esi
call fcn.005b2210
mov ebp, dword [ebp + 0x1c]
cmp ebp, ebx
jne 0x5b2a00
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [esp + 0x18]
mov dword [esp + 0x48], 0xffffffff
call fcn.0048f5b0
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0xc
call fcn.004895c0
test al, al
jne 0x5b2d15
call fcn.004895a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
test eax, eax
je 0x5b2d15
call fcn.004895a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
mov edi, eax
call fcn.00595c70
or dword [esp + 0x14], 2
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x48], 4
jb 0x5b2cf3
mov eax, dword [eax + 4]
jmp 0x5b2cf6
add eax, 4
mov edx, dword [edi]
mov ecx, dword [edx + 0xc]
push eax
mov eax, dword [esi + 8]
push eax
push str.Socket_is_successfully_connected__sock:__i__addr:__s
push 9
push 0x62
push str.E:PnzBsPnzBsTempFBCVersion037_00SrcPnzCodePnzNetProtocolPnzSocket.cpp
push ebx
push edi
call ecx
add esp, 0x20
test byte [esp + 0x14], 2
je 0x5b2d30
cmp dword [esp + 0x3c], 0x10
jb 0x5b2d30
mov edx, dword [esp + 0x28]
push edx
call fcn.005be738
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x48], 0xffffffff
call fcn.0048f5b0
mov al, 1
jmp 0x5b2c91
mov ecx, esi
call fcn.005b2210
push ebx
jmp 0x5b2c78