Function at 0x493810
Capabilities:
Connect socket
Set socket configuration

Disassembly:
sub esp, 0x3f8
push esi
mov esi, dword [esp + 0x404]
test esi, esi
jne 0x49384b
mov esi, dword [0x616ef0]
test esi, esi
je 0x493841
lea esp, [esp]
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x49384b
mov esi, dword [esi + 0x80]
test esi, esi
jne 0x493830
xor eax, eax
pop esi
add esp, 0x3f8
ret
push ebp
push edi
mov edi, dword [esp + 0x408]
cmp byte [edi], 0
je 0x493b19
mov ebp, dword [sym.imp.WSOCK32.dll_inet_addr]
push edi
call ebp
cmp eax, 0xffffffff
je 0x493b19
mov dword [esi + 0x6c], 1
mov dword [esi + 0x74], 0xb4
xor ecx, ecx
mov cx, word [0x609adc]
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.004937a0
push eax
xor edx, edx
mov dx, word [0x609e28]
push 0
xor eax, eax
mov ax, word [0x609e24]
push 2
push 0
push edx
push eax
call fcn.005285b0
add esp, 0x1c
cmp eax, 0xffffffff
mov dword [esi + 0x7c], eax
jne 0x4938ed
mov ecx, dword [esi + 0x70]
push 2
push ecx
jmp 0x493b1f
push eax
call fcn.0058be80
mov edx, dword [0x645324]
mov eax, dword [esi + 0x7c]
add esp, 4
push 0x10
push 0x8031
push edx
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov edx, dword [esi + 0x7c]
push 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
je 0x493b0a
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x493b0a
mov eax, dword [0x616ef0]
xor ebp, ebp
cmp eax, ebp
push ebx
mov ebx, dword [esi + 0x70]
je 0x493ae7
jmp 0x493950
cmp esi, eax
je 0x49396b
mov eax, dword [eax + 0x80]
cmp eax, ebp
jne 0x493950
pop ebx
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 0x3f8
ret
lea eax, [esp + 0x20]
push 0x3e7
push eax
call fcn.00423a00
lea ecx, [esp + 0x28]
push ecx
push 0xa8f
call fcn.00421db0
mov edi, dword [0x63c814]
add esp, 0x10
cmp edi, ebp
je 0x4939dc
cmp dword [edi + 8], ebx
jne 0x4939a8
push edi
call fcn.00502d00
add esp, 4
test eax, eax
je 0x4939b4
mov edi, dword [edi + 0x26a0]
cmp edi, ebp
jne 0x493996
jmp 0x4939dc
lea edx, [esp + 0x20]
push edx
lea ebp, [edi + 0x440]
push 0x3e7
push ebp
call fcn.00423900
push edi
call fcn.0058b6a0
push edi
push ebp
call fcn.0058b480
add esp, 0x18
xor ebp, ebp
push 2
lea eax, [esp + 0x24]
push 0x5e9cc4
push eax
call fcn.005e325e
add esp, 0xc
test eax, eax
jne 0x493a1d
lea eax, [esp + 0x22]
lea edx, [eax + 1]
jmp 0x493a00
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x493a00
sub eax, edx
inc eax
push eax
lea ecx, [esp + 0x26]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.005cceb0
add esp, 0xc
lea eax, [esp + 0x20]
push 0x20
push eax
call fcn.00552010
mov eax, dword [0x611900]
add esp, 8
cmp eax, ebp
je 0x493a47
cmp dword [eax + 0x52c], ebx
je 0x493a84
mov eax, dword [eax + 0x890]
cmp eax, ebp
jne 0x493a35
mov eax, dword [0x641548]
cmp eax, ebp
je 0x493a62
cmp dword [eax + 0x340], ebx
je 0x493a9a
mov eax, dword [eax + 0x3d4]
cmp eax, ebp
jne 0x493a50
mov eax, dword [0x63709c]
cmp eax, ebp
je 0x493ac3
jmp 0x493a70
cmp dword [eax + 0x444], ebx
je 0x493aae
mov eax, dword [eax + 0x4bc]
cmp eax, ebp
jne 0x493a70
jmp 0x493ac3
lea ecx, [esp + 0x20]
push ecx
push eax
mov dword [eax + 0x52c], ebp
call fcn.00434890
add esp, 8
jmp 0x493ac3
lea edx, [esp + 0x20]
push edx
push ebp
push eax
mov dword [eax + 0x340], ebp
call fcn.0053e670
jmp 0x493ac0
lea ecx, [esp + 0x20]
push ecx
push ebp
push eax
mov dword [eax + 0x444], ebp
call fcn.0049d510
add esp, 0xc
mov eax, dword [0x616ef0]
cmp eax, ebp
je 0x493ade
lea esp, [esp]
cmp esi, eax
je 0x493af4
mov eax, dword [eax + 0x80]
cmp eax, ebp
jne 0x493ad0
push ebx
call fcn.00493360
add esp, 4
pop ebx
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 0x3f8
ret
push esi
call fcn.004932e0
add esp, 4
pop ebx
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 0x3f8
ret
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x3f8
ret
mov edx, dword [esi + 0x70]
push 1
push edx
push esi
call fcn.004933a0
add esp, 0xc
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 0x3f8
ret