Function at 0x4954a0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, 0x1078
call fcn.005d9990
push esi
mov esi, dword [esp + 0x1084]
test esi, esi
jne 0x4954de
mov esi, dword [0x648c90]
test esi, esi
je 0x4954d4
mov eax, dword [esi + 0x138]
test eax, eax
je 0x4954de
mov esi, dword [esi + 0x14c]
test esi, esi
jne 0x4954c0
xor eax, eax
pop esi
add esp, 0x1078
ret
push ebp
push edi
mov edi, dword [esp + 0x1088]
cmp byte [edi], 0
je 0x4957c9
mov ebp, dword [sym.imp.WSOCK32.dll_inet_addr]
push edi
call ebp
cmp eax, 0xffffffff
je 0x4957c9
mov dword [esi + 0x138], 1
mov dword [esi + 0x140], 0xb4
xor ecx, ecx
mov cx, word [0x61a090]
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
push ecx
call dword [sym.imp.WSOCK32.dll_htons]
push edi
mov word [esp + 0x12], ax
call ebp
push esi
mov dword [esp + 0x14], eax
call fcn.00495430
push eax
xor edx, edx
mov dx, word [0x61a70c]
push 0
xor eax, eax
mov ax, word [0x61a708]
push 2
push 0
push edx
push eax
call fcn.0052f8a0
add esp, 0x1c
cmp eax, 0xffffffff
mov dword [esi + 0x148], eax
jne 0x49558c
mov ecx, dword [esi + 0x13c]
push 2
push ecx
jmp 0x4957d2
push eax
call fcn.00598890
mov edx, dword [0x6a0f40]
mov eax, dword [esi + 0x148]
add esp, 4
push 0x10
push 0x8031
push edx
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov edx, dword [esi + 0x148]
push 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
je 0x4957ba
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4957ba
mov eax, dword [0x648c90]
xor ebp, ebp
cmp eax, ebp
push ebx
mov ebx, dword [esi + 0x13c]
je 0x495797
cmp esi, eax
je 0x49560e
mov eax, dword [eax + 0x14c]
cmp eax, ebp
jne 0x4955f3
pop ebx
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 0x1078
ret
lea eax, [esp + 0x20]
push 0x1068
push eax
call fcn.004232e0
lea ecx, [esp + 0x28]
push ecx
push 0xa8f
call fcn.00424130
mov edi, dword [0x67b0c8]
add esp, 0x10
cmp edi, ebp
je 0x495686
lea esp, [esp]
cmp dword [edi + 8], ebx
jne 0x495652
push edi
call fcn.00508d40
add esp, 4
test eax, eax
je 0x49565e
mov edi, dword [edi + 0x819c]
cmp edi, ebp
jne 0x495640
jmp 0x495686
lea edx, [esp + 0x20]
push edx
lea ebp, [edi + 0x440]
push 0x1068
push ebp
call fcn.00425550
push edi
call fcn.00598080
push edi
push ebp
call fcn.00597e60
add esp, 0x18
xor ebp, ebp
push 2
lea eax, [esp + 0x24]
push 0x5f7d7c
push eax
call fcn.005f18c9
add esp, 0xc
test eax, eax
jne 0x4956c2
lea eax, [esp + 0x22]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4956a5
sub eax, edx
inc eax
push eax
lea ecx, [esp + 0x26]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.005daa60
add esp, 0xc
lea eax, [esp + 0x20]
push 0x20
push eax
call fcn.0055ac10
mov eax, dword [0x634560]
add esp, 8
cmp eax, ebp
je 0x4956f2
lea ebx, [ebx]
cmp dword [eax + 0x1414], ebx
je 0x495734
mov eax, dword [eax + 0x2104]
cmp eax, ebp
jne 0x4956e0
mov eax, dword [0x68d418]
cmp eax, ebp
je 0x495712
jmp 0x495700
cmp dword [eax + 0xc08], ebx
je 0x49574a
mov eax, dword [eax + 0xd1c]
cmp eax, ebp
jne 0x495700
mov eax, dword [0x6696c8]
cmp eax, ebp
je 0x495773
jmp 0x495720
cmp dword [eax + 0x1038], ebx
je 0x49575e
mov eax, dword [eax + 0x1128]
cmp eax, ebp
jne 0x495720
jmp 0x495773
lea ecx, [esp + 0x20]
push ecx
push eax
mov dword [eax + 0x1414], ebp
call fcn.00434cd0
add esp, 8
jmp 0x495773
lea edx, [esp + 0x20]
push edx
push ebp
push eax
mov dword [eax + 0xc08], ebp
call fcn.00546ec0
jmp 0x495770
lea ecx, [esp + 0x20]
push ecx
push ebp
push eax
mov dword [eax + 0x1038], ebp
call fcn.0049fd30
add esp, 0xc
mov eax, dword [0x648c90]
cmp eax, ebp
je 0x49578e
lea esp, [esp]
cmp esi, eax
je 0x4957a4
mov eax, dword [eax + 0x14c]
cmp eax, ebp
jne 0x495780
push ebx
call fcn.00494ff0
add esp, 4
pop ebx
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 0x1078
ret
push esi
call fcn.00494f70
add esp, 4
pop ebx
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 0x1078
ret
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x1078
ret
mov edx, dword [esi + 0x13c]
push 1
push edx
push esi
call fcn.00495030
add esp, 0xc
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 0x1078
ret