Function at 0x492df0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, dword [0x5ed44c]
sub esp, 0x1c
test eax, eax
push esi
mov esi, ecx
je 0x492e0e
nop
cmp eax, esi
je 0x492e15
mov eax, dword [eax + 0x4bc]
test eax, eax
jne 0x492e00
xor eax, eax
pop esi
add esp, 0x1c
ret
mov ecx, dword [esi + 0x4b8]
call fcn.004f0af0
test eax, eax
jne 0x492e39
push 0x5a4bec
xor edx, edx
mov ecx, esi
call fcn.00492700
xor eax, eax
pop esi
add esp, 0x1c
ret
mov eax, dword [esi + 0x444]
test eax, eax
push edi
mov dword [esi + 0x440], 2
mov dword [esi + 0x4ac], 0
je 0x492f39
cmp word [esi + 0x454], 0
lea edi, [esi + 0x454]
jne 0x492f39
mov eax, dword [0x5cd3e0]
test eax, eax
je 0x492ec0
xor edx, edx
mov ecx, 0xb5c
call fcn.0041f1a0
push eax
push 1
push 1
push 1
mov edx, 1
mov ecx, esi
call fcn.0054c570
mov eax, dword [esi + 0x4b8]
mov ecx, dword [esi + 0x444]
push eax
push ecx
push 1
lea ecx, [esi + 0xcc]
xor edx, edx
call fcn.0048ab30
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
mov dx, word [0x5bfd6c]
mov cx, word [0x5bfd68]
push 1
push 1
push 0
push edi
call fcn.00515a30
cmp eax, 0xffffffff
mov dword [esi + 0x4b0], eax
je 0x493064
mov edx, dword [0x5f92ec]
push 8
push 0x8011
push edx
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov eax, dword [esi + 0x4b8]
mov ecx, dword [esi + 0x444]
mov edx, dword [esi + 0x464]
push eax
push ecx
xor ecx, ecx
mov cx, word [edi]
push edx
mov edx, dword [eax + 0x908]
push ecx
push edx
lea edx, [esi + 0x234]
lea ecx, [esi + 4]
call fcn.00526470
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
lea edi, [esi + 0xcc]
push edi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov ecx, dword [0x5cd3e0]
mov dword [esp + 8], eax
jne 0x492f91
test ecx, ecx
je 0x492f63
mov edx, dword [0x5cd3dc]
test edx, edx
jne 0x492f91
mov eax, dword [esi + 0x47c]
test eax, eax
je 0x492f87
mov ecx, dword [esi]
push 0xa
push 0
push edi
lea edx, [esi + 4]
call fcn.00475c40
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
mov ecx, 0xb5e
jmp 0x4930b7
test ecx, ecx
je 0x492ff2
xor edx, edx
mov ecx, 0xb5c
call fcn.0041f1a0
push eax
push 1
push 0
push 1
mov edx, 1
mov ecx, esi
call fcn.0054c570
mov eax, dword [esi + 0x444]
test eax, eax
jne 0x492fc9
call fcn.00420bb0
mov dword [esi + 0x444], eax
mov eax, dword [esi + 0x4b8]
mov ecx, dword [esi + 0x444]
mov dx, word [esi + 0x454]
push eax
push ecx
push 0
mov ecx, edi
call fcn.0048ab30
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
lea edx, [esp + 8]
mov dword [esp + 0xc], edx
xor edx, edx
mov dx, word [esi + 0x454]
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], ecx
push edx
mov word [esp + 0x18], 2
mov dword [esp + 0x1c], eax
call dword [sym.imp.WSOCK32.dll_htons]
mov dx, word [0x5bfd6c]
push 1
mov word [esp + 0x1a], ax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
push 2
mov dword [esp + 0x24], ecx
mov cx, word [0x5bfd68]
push 0
call fcn.00515a30
cmp eax, 0xffffffff
mov dword [esi + 0x4b0], eax
jne 0x49306b
mov ecx, 0xb5d
jmp 0x4930b7
mov ecx, eax
call fcn.00569850
mov edx, dword [0x5f92ec]
mov eax, dword [esi + 0x4b0]
push 0x10
push 0x800f
push edx
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov edx, dword [esi + 0x4b0]
push 0x10
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
je 0x4930c8
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4930c8
mov ecx, 0xb5f
xor edx, edx
call fcn.0041f1a0
mov ecx, esi
xor edx, edx
push eax
call fcn.00492700
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret