Function at 0x5988c0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
sub esp, 0x44c
push ebx
push esi
mov esi, dword [esp + 0x464]
xor ebx, ebx
cmp esi, ebx
je 0x5988eb
push esi
call fcn.00508aa0
add esp, 4
test eax, eax
jne 0x598905
pop esi
pop ebx
add esp, 0x44c
ret
mov eax, dword [esp + 0x458]
push eax
call fcn.00508b00
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x598c17
mov ecx, dword [esp + 0x45c]
shr ecx, 0x10
test ecx, ecx
push ebp
push edi
je 0x598944
cmp dword [esi + 0x41c], ebx
jne 0x598c15
cmp dword [esi + 0x420], ebx
je 0x598933
mov dword [esi + 0x14ac], 3
lea edi, [esi + 0x440]
push edi
push 0x1779
jmp 0x598b57
mov dword [esi + 0x18], ebx
xor edx, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
lea eax, [esi + 0x36cc]
mov dword [esp + 0x20], edx
push eax
mov dword [esp + 0x28], edx
mov word [esp + 0x1c], 2
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], eax
call fcn.005d9a55
add esp, 4
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov ebp, dword [sym.imp.WSOCK32.dll_inet_ntoa]
mov word [esp + 0x1a], ax
mov eax, dword [esp + 0x468]
cmp eax, 0xffffffff
je 0x59899e
mov dword [esp + 0x1c], eax
jmp 0x598a7c
mov eax, dword [esi + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ebx
mov eax, dword [esi + 0x28]
mov ecx, dword [eax]
xor edi, edi
cmp ecx, ebx
je 0x598a7c
lea esp, [esp]
mov eax, dword [eax + edi*4]
mov eax, dword [eax]
push eax
call ebp
cmp eax, ebx
je 0x598a30
push eax
lea ecx, [esp + 0x2c]
push 0x432
push ecx
call fcn.00425550
lea edx, [esp + 0x34]
push edx
lea eax, [esi + 0x37fe]
push eax
call fcn.005f1860
add esp, 0x14
test eax, eax
je 0x598a30
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x598a30
cmp eax, dword [esp + 0x1c]
je 0x598a30
call fcn.005d9ec8
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.004e8850
add esp, 0xc
cmp eax, ebx
je 0x598a30
mov dword [esp + 0x10], eax
mov ecx, dword [eax + 0x44]
mov dword [ecx + 8], edi
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + edi*4 + 4]
inc edi
cmp ecx, ebx
jne 0x5989c0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x598a7c
push esi
push 0x32
push eax
call fcn.005547c0
mov dword [esp + 0x1c], eax
mov ecx, dword [esi + 0x28]
mov edx, dword [eax + 8]
mov edx, dword [ecx + edx*4]
mov ecx, dword [edx]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x10]
add esp, 0xc
cmp ecx, ebx
je 0x598a79
lea edx, [esp + 0x10]
push edx
call fcn.004e8c50
add esp, 4
jmp 0x598a7c
mov dword [esi + 0x10], eax
cmp dword [0x649044], ebx
je 0x598b0e
mov eax, dword [esi + 8]
push eax
call fcn.00494ff0
mov ecx, dword [esp + 0x20]
add esp, 4
push ecx
mov byte [esp + 0x2c], bl
call ebp
cmp eax, ebx
je 0x598ab6
push eax
lea edx, [esp + 0x2c]
push 0x432
push edx
call fcn.00425550
add esp, 0xc
cmp byte [esp + 0x28], bl
je 0x598b0e
lea eax, [esi + 0x37fe]
push eax
call fcn.00494ea0
add esp, 4
test eax, eax
jne 0x598b0e
lea ecx, [esp + 0x28]
push ecx
call fcn.00494ea0
add esp, 4
test eax, eax
jne 0x598b0e
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x14]
push esi
push edx
push ebx
push eax
call fcn.005d9a55
add esp, 4
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00497450
add esp, 0x14
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x44c
ret
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x7cac], edx
mov eax, dword [esp + 0x1c]
push ebx
mov dword [esi + 0x14b8], eax
xor ecx, ecx
mov cx, word [0x61a70c]
push ebx
xor edx, edx
mov dx, word [0x61a708]
push 2
push ebx
push ecx
push edx
call fcn.0052f8a0
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x598b79
lea edi, [esi + 0x440]
push edi
push 0x177a
call fcn.00424130
push esi
call fcn.00598080
push esi
push edi
call fcn.00597e60
add esp, 0x14
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x44c
ret
push 4
lea ecx, [esp + 0x18]
push ecx
push 8
push 0xffff
push eax
mov dword [esp + 0x28], 1
call dword [sym.imp.WSOCK32.dll_setsockopt]
mov edx, dword [0x6a0f40]
mov eax, dword [esi + 4]
push 0x10
push 0x800d
push edx
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov edx, dword [esi + 4]
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
je 0x598c15
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
je 0x598c15
cmp dword [esi + 0x41c], ebx
jne 0x598c15
cmp dword [esi + 0x420], ebx
je 0x598bed
mov dword [esi + 0x14ac], 4
lea edi, [esi + 0x440]
push 0x1068
push edi
call fcn.004232e0
push esi
push ebp
call fcn.00598370
push esi
call fcn.00598080
push esi
push edi
call fcn.00597e60
add esp, 0x1c
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x44c
ret