Function at 0x403451
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10320
call fcn.0040c214
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov ebx, 0x6e2d0229
sub ebx, 0x4a53
add ebx, 0x11b3
push 0
call fcn.0040c710
pop ecx
and dword [ebp - 0x104], 0
sub ebx, 0x667c
cmp dword [ebp - 0x104], 0x40
jae 0x4034a9
mov edx, dword [ebp - 0x104]
inc dword [ebp - 0x104]
mov dword [ebp + edx*4 - 0x100], edi
cmp dword [ebp - 0x104], 0x40
jae 0x4034c5
mov edx, dword [ebp - 0x104]
inc dword [ebp - 0x104]
mov dword [ebp + edx*4 - 0x100], esi
inc dword [0x42c104]
mov eax, ebx
sub eax, ebx
mov ebx, eax
and dword [ebp - 0x30c], 0
cmp dword [ebp - 0x30c], 0x40
jae 0x4034f4
mov edx, dword [ebp - 0x30c]
inc dword [ebp - 0x30c]
mov dword [ebp + edx*4 - 0x308], edi
cmp dword [ebp - 0x30c], 0x40
jae 0x403510
mov edx, dword [ebp - 0x30c]
inc dword [ebp - 0x30c]
mov dword [ebp + edx*4 - 0x308], esi
and dword [ebp - 0x208], 0
mov eax, ebx
mul ebx
mov dword [ebp - 0x1031c], eax
mov ebx, eax
cmp dword [ebp - 0x208], 0x40
jae 0x40353f
mov edx, dword [ebp - 0x208]
inc dword [ebp - 0x208]
mov dword [ebp + edx*4 - 0x204], edi
cmp dword [ebp - 0x208], 0x40
jae 0x40355b
mov edx, dword [ebp - 0x208]
inc dword [ebp - 0x208]
mov dword [ebp + edx*4 - 0x204], esi
inc dword [0x42c104]
mov eax, ebx
xor eax, ebx
mov ebx, eax
and dword [ebp - 0x318], 0
mov dword [ebp - 0x314], 0x64
xor ebx, 0x7d6a
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
push 2
call sub.wsock32.dll_select
lea eax, [ebp - 0x104]
push eax
push esi
call sub.wsock32.dll___WSAFDIsSet
or eax, eax
je 0x403664
lea edx, [ebp - 0x208]
push edx
push edi
call sub.wsock32.dll___WSAFDIsSet
or eax, eax
je 0x403664
push 0
push 0xffff
lea eax, [ebp - 0x10317]
push eax
push esi
call sub.wsock32.dll_recv
mov dword [ebp - 0x310], eax
cmp eax, 0xffffffff
jne 0x4035fd
push edi
call sub.wsock32.dll_closesocket
xor ebx, 0x50cb
xor eax, eax
jmp 0x40379d
inc dword [0x42c104]
cmp dword [ebp - 0x310], 0
jne 0x40361f
push esi
call sub.wsock32.dll_closesocket
mov eax, ebx
xor eax, ebx
mov ebx, eax
xor eax, eax
jmp 0x40379d
mov eax, dword [ebp - 0x310]
mov byte [ebp + eax - 0x10317], 0
inc dword [0x42c104]
push 0
push eax
lea eax, [ebp - 0x10317]
push eax
push edi
call sub.wsock32.dll_send
cmp eax, 0xffffffff
jne 0x403664
push edi
call sub.wsock32.dll_closesocket
mov eax, 0x29ec
mul ebx
mov dword [ebp - 0x10320], eax
mov ebx, eax
xor eax, eax
jmp 0x40379d
lea eax, [ebp - 0x104]
push eax
push edi
call sub.wsock32.dll___WSAFDIsSet
or eax, eax
je 0x40372f
lea edx, [ebp - 0x208]
push edx
push esi
call sub.wsock32.dll___WSAFDIsSet
or eax, eax
je 0x40372f
push 0
push 0xffff
lea eax, [ebp - 0x10317]
push eax
push edi
call sub.wsock32.dll_recv
mov dword [ebp - 0x310], eax
cmp eax, 0xffffffff
jne 0x4036c9
push edi
call sub.wsock32.dll_closesocket
mov eax, 0x4522
mul ebx
mov dword [ebp - 0x10320], eax
mov ebx, eax
xor eax, eax
jmp 0x40379d
cmp dword [ebp - 0x310], 0
jne 0x4036eb
inc dword [0x42c104]
push edi
call sub.wsock32.dll_closesocket
add ebx, 0x652
xor eax, eax
jmp 0x40379d
inc dword [0x42c104]
mov eax, dword [ebp - 0x310]
mov byte [ebp + eax - 0x10317], 0
mov eax, ebx
xor eax, ebx
mov ebx, eax
push 0
push dword [ebp - 0x310]
lea eax, [ebp - 0x10317]
push eax
push esi
call sub.wsock32.dll_send
cmp eax, 0xffffffff
jne 0x40372f
push edi
call sub.wsock32.dll_closesocket
add ebx, 0x3fe2
xor eax, eax
jmp 0x40379d
lea eax, [ebp - 0x30c]
push eax
push esi
call sub.wsock32.dll___WSAFDIsSet
or eax, eax
je 0x403766
inc dword [0x42c104]
mov eax, 0x534
mul ebx
mov dword [ebp - 0x10320], eax
mov ebx, eax
push esi
call sub.wsock32.dll_closesocket
xor eax, eax
inc eax
jmp 0x40379d
lea eax, [ebp - 0x30c]
push eax
push edi
call sub.wsock32.dll___WSAFDIsSet
or eax, eax
je 0x403788
push edi
call sub.wsock32.dll_closesocket
mov eax, ebx
sub eax, ebx
mov ebx, eax
xor eax, eax
inc eax
jmp 0x40379d
jmp 0x403478
pop edi
pop esi
pop ebx
leave
ret