Function at 0x453120
Capabilities:
Connect socket

Disassembly:
sub esp, 0x124
mov eax, dword [0x526a28]
xor eax, esp
mov dword [esp + 0x120], eax
mov eax, dword [esp + 0x128]
push ebp
mov ebp, dword [ebx]
mov dword [ecx], 0xffffffff
mov dword [esp + 0xc], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0xc]
push esi
mov esi, edx
mov edx, dword [ebx + 0x70]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], ecx
cmp ecx, 0x80
jbe 0x45317c
mov ecx, 0x80
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 0x18]
push ecx
push edx
lea eax, [esp + 0x30]
push eax
call fcn.0043ab90
mov dword [esi], 0
mov eax, dword [ebp + 0x1b4]
add esp, 0xc
test eax, eax
je 0x4531b9
mov edx, dword [ebp + 0x1b8]
lea ecx, [esp + 0x18]
push ecx
push 0
push edx
call eax
mov esi, eax
add esp, 0xc
mov dword [esp + 0xc], esi
jmp 0x4531d4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esp + 0xc], eax
mov esi, eax
cmp esi, 0xffffffff
jne 0x4531f2
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00431c7a
add esp, 0x124
ret
mov edx, dword [esp + 0x18]
push edi
push 0x80
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x38]
push ecx
push edx
call fcn.00457320
add esp, 0x10
test eax, eax
je 0x45325a
lea eax, [esp + 0xac]
push eax
push str.__Trying__s...
push ebp
call fcn.00452600
lea ecx, [esp + 0xb8]
push ecx
push 0x4ec234
lea edi, [ebp + 0x86d4]
push 0x2e
push edi
call fcn.00457a90
lea edx, [ebx + 0x3c]
add esp, 0x1c
mov eax, edi
sub edx, edi
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x453250
cmp dword [ebp + 0x340], 0
je 0x45326c
mov edx, esi
mov edi, ebx
call fcn.00453050
push esi
call fcn.004530b0
mov eax, dword [ebp + 0x1ac]
add esp, 4
test eax, eax
je 0x45329c
mov edx, dword [ebp + 0x1b0]
push 0
push esi
push edx
call eax
add esp, 0xc
mov dword [esp + 0xc], eax
test eax, eax
je 0x45329c
push esi
jmp 0x45342d
mov ecx, dword [esp + 0x1c]
push esi
push ebx
call fcn.00452b50
mov edi, eax
add esp, 8
test edi, edi
je 0x4532d1
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00431c7a
add esp, 0x124
ret
push 1
push esi
call fcn.0046c140
add esp, 8
cmp dword [ebx + 0x70], 1
jne 0x453396
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x30]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4533d5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0xc], eax
cmp eax, 0xb
je 0x45339a
cmp eax, 0x2732
jle 0x453323
cmp eax, 0x2734
jle 0x45339a
push eax
push ebx
call fcn.0046b8d0
push eax
lea edx, [esp + 0xb8]
push edx
push str.Failed_to_connect_to__s:__s
push ebp
call fcn.00452690
mov eax, dword [esp + 0x24]
add esp, 0x18
mov dword [ebp + 0x858c], eax
push esi
lea esi, [esp + 0x10]
call fcn.00452e60
add esp, 4
test edi, edi
jne 0x4533f3
test eax, eax
je 0x453408
mov edx, dword [esp + 0x18]
push str.connected_n
push ebp
mov dword [edx], 1
call fcn.00452600
mov esi, dword [esp + 0x18]
push esi
push ebx
call fcn.00452f20
mov eax, dword [esp + 0x24]
add esp, 0x10
mov dword [eax], esi
jmp 0x453433
xor edi, edi
jmp 0x45334b
mov eax, dword [esp + 0x138]
push ebx
mov edi, esi
call fcn.00452ae0
mov edi, eax
add esp, 4
cmp edi, 3
jne 0x4533d5
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [edi + 0x27]
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00431c7a
add esp, 0x124
ret
cmp edi, 1
jne 0x45334b
cmp dword [ebp + 0x540], 2
jne 0x45334b
mov ecx, dword [esp + 0x14]
mov dword [ecx], esi
jmp 0x453433
cmp edi, 1
jne 0x453408
push str.Timeout_n
push ebp
call fcn.00452600
add esp, 8
jmp 0x453428
mov eax, dword [esp + 0xc]
push eax
push ebx
mov dword [ebp + 0x858c], eax
call fcn.0046b8d0
push eax
push 0x4ec270
push ebp
call fcn.00452600
add esp, 0x14
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00431c7a
add esp, 0x124
ret