Function at 0x10059ad0
Capabilities:
Connect socket
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x10343c80]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp ecx, 0xffffffff
jne 0x10059b4d
mov ecx, dword [0x103447d0]
mov eax, dword [0x103447d4]
cmp ecx, 0x257edfd1
jne 0x10059b0e
cmp eax, 0xb2ab117a
je 0x10059b1d
cmp ecx, 0x257edfd0
jne 0x10059b21
cmp eax, 0xb2ab117a
jne 0x10059b21
mov al, 1
jmp 0x10059b35
mov eax, dword [0x103447c8]
mov ecx, 0x103447c8
push 0x2719
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [edi], 0x2719
add eax, 2
mov dword [edi + 4], 0x103447c8
mov dword [edi + 8], eax
jmp 0x10059b64
push dword [ebp + 8]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
mov ecx, edi
setne dl
call fcn.10059870
mov ebx, dword [0x103447d0]
mov esi, dword [0x103447d4]
cmp ebx, 0x257edfd1
jne 0x10059b80
cmp esi, 0xb2ab117a
je 0x10059b90
cmp ebx, 0x257edfd0
jne 0x10059b94
cmp esi, 0xb2ab117a
jne 0x10059b94
mov al, 1
jmp 0x10059bb4
mov eax, dword [0x103447c8]
mov ecx, 0x103447c8
push 0x2734
mov eax, dword [eax + 0x18]
call eax
mov esi, dword [0x103447d4]
mov ebx, dword [0x103447d0]
movzx eax, al
lea edx, [ebp - 0x224]
add eax, 2
mov dword [ebp - 0x224], 0x2734
mov ecx, edi
mov dword [ebp - 0x220], 0x103447c8
mov dword [ebp - 0x21c], eax
call fcn.100580b0
test al, al
jne 0x10059c5e
cmp ebx, 0x257edfd1
jne 0x10059bf5
cmp esi, 0xb2ab117a
je 0x10059c05
cmp ebx, 0x257edfd0
jne 0x10059c09
cmp esi, 0xb2ab117a
jne 0x10059c09
mov al, 1
jmp 0x10059c29
mov eax, dword [0x103447c8]
mov ecx, 0x103447c8
push 0x2733
mov eax, dword [eax + 0x18]
call eax
mov esi, dword [0x103447d4]
mov ebx, dword [0x103447d0]
movzx eax, al
lea edx, [ebp - 0x224]
add eax, 2
mov dword [ebp - 0x224], 0x2733
mov ecx, edi
mov dword [ebp - 0x220], 0x103447c8
mov dword [ebp - 0x21c], eax
call fcn.100580b0
test al, al
je 0x10059da9
mov eax, dword [ebp - 0x218]
cmp eax, 0xffffffff
jne 0x10059cb5
cmp ebx, 0x257edfd1
jne 0x10059c79
cmp esi, 0xb2ab117a
je 0x10059c89
cmp ebx, 0x257edfd0
jne 0x10059c96
cmp esi, 0xb2ab117a
jne 0x10059c96
mov al, 1
mov dword [edi], 0x2719
jmp 0x10059d99
mov eax, dword [0x103447c8]
mov ecx, 0x103447c8
push 0x2719
mov eax, dword [eax + 0x18]
call eax
mov dword [edi], 0x2719
jmp 0x10059d99
push 0
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x20c], eax
push ecx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x108], eax
push ecx
push 0
inc eax
mov dword [ebp - 0x210], 1
push eax
mov dword [ebp - 0x10c], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x10059d4f
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0
push eax
push 0x1007
xorps xmm0, xmm0
mov dword [ebp - 8], 4
push 0xffff
movq qword [edi], xmm0
push ecx
mov dword [edi + 8], 0
call dword [sym.imp.WS2_32.dll_getsockopt]
mov esi, eax
mov ecx, edi
test esi, esi
setne dl
call fcn.10059870
cmp esi, 0xffffffff
je 0x10059da9
mov esi, dword [ebp - 0x214]
jmp 0x10059d57
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, dword [0x103447d0]
mov eax, dword [0x103447d4]
cmp ecx, 0x257edfd1
jne 0x10059d71
cmp eax, 0xb2ab117a
je 0x10059d80
cmp ecx, 0x257edfd0
jne 0x10059d87
cmp eax, 0xb2ab117a
jne 0x10059d87
test esi, esi
setne al
jmp 0x10059d97
mov eax, dword [0x103447c8]
mov ecx, 0x103447c8
push esi
mov eax, dword [eax + 0x18]
call eax
mov dword [edi], esi
movzx eax, al
add eax, 2
mov dword [edi + 4], 0x103447c8
mov dword [edi + 8], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1026af9a
mov esp, ebp
pop ebp
ret