Function at 0x4050b0
Capabilities:
Connect socket
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x49d980]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x224], ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp ecx, 0xffffffff
jne 0x405140
mov ecx, dword [0x49da58]
mov eax, dword [0x49da5c]
cmp ecx, 0x257edfd1
jne 0x4050ee
cmp eax, 0xb2ab117a
je 0x4050fd
cmp ecx, 0x257edfd0
jne 0x405101
cmp eax, 0xb2ab117a
jne 0x405101
mov al, 1
jmp 0x405115
mov eax, dword [0x49da50]
mov ecx, 0x49da50
push 0x2719
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [ebp - 0x220], 0x2719
add eax, 2
mov dword [ebp - 0x21c], 0x49da50
movq xmm0, qword [ebp - 0x220]
movq qword [edi], xmm0
mov dword [edi + 8], eax
jmp 0x405157
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.00404e30
mov ebx, dword [0x49da58]
mov esi, dword [0x49da5c]
cmp ebx, 0x257edfd1
jne 0x405173
cmp esi, 0xb2ab117a
je 0x405183
cmp ebx, 0x257edfd0
jne 0x405187
cmp esi, 0xb2ab117a
jne 0x405187
mov al, 1
jmp 0x4051a7
mov eax, dword [0x49da50]
mov ecx, 0x49da50
push 0x2734
mov eax, dword [eax + 0x18]
call eax
mov esi, dword [0x49da5c]
mov ebx, dword [0x49da58]
movzx eax, al
lea edx, [ebp - 0x220]
mov dword [ebp - 0x220], 0x2734
add eax, 2
mov dword [ebp - 0x21c], 0x49da50
mov ecx, edi
movq xmm0, qword [ebp - 0x220]
movq qword [ebp - 0x220], xmm0
mov dword [ebp - 0x218], eax
call fcn.00402aa0
test al, al
jne 0x405275
cmp ebx, 0x257edfd1
jne 0x4051fc
cmp esi, 0xb2ab117a
je 0x40520c
cmp ebx, 0x257edfd0
jne 0x405210
cmp esi, 0xb2ab117a
jne 0x405210
mov al, 1
jmp 0x405230
mov eax, dword [0x49da50]
mov ecx, 0x49da50
push 0x2733
mov eax, dword [eax + 0x18]
call eax
mov esi, dword [0x49da5c]
mov ebx, dword [0x49da58]
movzx eax, al
lea edx, [ebp - 0x220]
mov dword [ebp - 0x220], 0x2733
add eax, 2
mov dword [ebp - 0x21c], 0x49da50
mov ecx, edi
movq xmm0, qword [ebp - 0x220]
movq qword [ebp - 0x220], xmm0
mov dword [ebp - 0x218], eax
call fcn.00402aa0
test al, al
je 0x4053d2
mov eax, dword [ebp - 0x224]
cmp eax, 0xffffffff
jne 0x4052d4
cmp ebx, 0x257edfd1
jne 0x405290
cmp esi, 0xb2ab117a
je 0x4052a0
cmp ebx, 0x257edfd0
jne 0x4052b1
cmp esi, 0xb2ab117a
jne 0x4052b1
mov al, 1
mov dword [ebp - 0x220], 0x2719
jmp 0x4053b3
mov eax, dword [0x49da50]
mov ecx, 0x49da50
push 0x2719
mov eax, dword [eax + 0x18]
call eax
mov dword [ebp - 0x220], 0x2719
jmp 0x4053b3
push 0
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x210], eax
push ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x10c], eax
push ecx
push 0
inc eax
mov dword [ebp - 0x214], 1
push eax
mov dword [ebp - 0x110], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x405365
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x1007
xorps xmm0, xmm0
mov dword [ebp - 0xc], 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.00404e30
cmp esi, 0xffffffff
je 0x4053d2
mov esi, dword [ebp - 8]
jmp 0x40536d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, dword [0x49da58]
mov eax, dword [0x49da5c]
cmp ecx, 0x257edfd1
jne 0x405387
cmp eax, 0xb2ab117a
je 0x405396
cmp ecx, 0x257edfd0
jne 0x40539d
cmp eax, 0xb2ab117a
jne 0x40539d
test esi, esi
setne al
jmp 0x4053ad
mov eax, dword [0x49da50]
mov ecx, 0x49da50
push esi
mov eax, dword [eax + 0x18]
call eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0x49da50
movq xmm0, qword [ebp - 0x220]
movzx eax, al
add eax, 2
movq qword [edi], xmm0
mov dword [edi + 8], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047cd55
mov esp, ebp
pop ebp
ret