Function at 0x435530
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, dword [0x634560]
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
je 0x435552
mov esi, dword [esp + 0x28]
cmp esi, eax
je 0x43555a
mov eax, dword [eax + 0x2104]
cmp eax, ebx
jne 0x435544
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov eax, dword [esi + 0x2100]
push eax
call fcn.00508aa0
add esp, 4
test eax, eax
jne 0x435583
push 0x5f4c90
push esi
call fcn.00434cd0
add esp, 8
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
cmp dword [esi + 0x1418], ebx
mov dword [esi + 0x1408], 2
mov dword [esi + 0x20ec], ebx
mov dword [esi + 0x20f0], ebx
jne 0x4355ad
cmp dword [esi + 0x20f8], ebx
je 0x43565f
cmp word [esi + 0x1406], bx
jne 0x43565f
cmp dword [0x649040], ebx
je 0x435616
mov ecx, dword [0x63ca9c]
push ecx
push ebx
push 0x523
mov dword [0x6870cc], ebx
call fcn.00424130
mov edx, dword [esi]
add esp, 8
push eax
push edx
call fcn.0052ddc0
call fcn.004230d0
mov ecx, dword [esi + 0x2100]
push ecx
push eax
push 1
mov dword [esi + 0x1414], eax
push ebx
add esi, 0x12d4
push esi
call fcn.00497450
add esp, 0x20
pop esi
mov eax, 1
pop ebx
add esp, 0x1c
ret
mov eax, dword [esi + 0x2100]
mov cl, byte [eax + 0x15ee]
add eax, 0x15ee
cmp cl, bl
je 0x43557b
push eax
lea edx, [esi + 0x12d4]
push 0x132
push edx
call fcn.00425550
push 8
push esi
call fcn.00435200
add esp, 0x14
test eax, eax
je 0x43557b
pop esi
mov eax, 1
pop ebx
add esp, 0x1c
ret
push edi
lea edi, [esi + 0x12d4]
push edi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov ecx, dword [0x649040]
mov dword [esp + 0xc], eax
jne 0x4356d0
cmp ecx, ebx
je 0x435688
cmp dword [0x64903c], ebx
jne 0x4356d0
cmp dword [esi + 0x141c], ebx
je 0x4356b2
mov ecx, dword [esi]
push 7
push ebx
push edi
lea eax, [esi + 0x1070]
push eax
push ecx
call fcn.0047fc10
add esp, 0x14
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x1c
ret
push ebx
push 0x524
call fcn.00424130
push eax
push esi
call fcn.00434cd0
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
cmp ecx, ebx
je 0x43572b
mov edx, dword [0x63ca9c]
push edx
push ebx
push 0x523
mov dword [0x6870cc], ebx
call fcn.00424130
add esp, 8
push eax
mov eax, dword [esi]
push eax
call fcn.0052ddc0
call fcn.004230d0
mov ecx, dword [esi + 0x2100]
xor edx, edx
mov dx, word [esi + 0x1406]
push ecx
push eax
push ebx
mov dword [esi + 0x1414], eax
push edx
push edi
call fcn.00497450
add esp, 0x20
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x1c
ret
xor edx, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x1c], eax
xor eax, eax
mov ax, word [esi + 0x1406]
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], edx
mov word [esp + 0x18], 2
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov ecx, dword [esp + 0x10]
mov word [esp + 0x1a], ax
mov edx, dword [ecx]
push 1
xor eax, eax
mov ax, word [0x61a70c]
push ebx
xor ecx, ecx
mov cx, word [0x61a708]
push 2
push ebx
mov dword [esp + 0x2c], edx
push eax
push ecx
call fcn.0052f8a0
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 0x20fc], eax
jne 0x4357bd
push ebx
push 0x518
call fcn.00424130
push eax
push esi
call fcn.00434cd0
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
push eax
call fcn.00598890
mov edx, dword [0x6a0f40]
mov eax, dword [esi + 0x20fc]
add esp, 4
push 0x10
push 0x801c
push edx
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov edx, dword [esi + 0x20fc]
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
je 0x435814
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x435814
push 0x5f4c90
push esi
call fcn.00434cd0
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret