Function at 0x4425e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
xor edi, edi
cmp dword [ebx + 0x24], edi
jne 0x44290b
mov eax, dword [ebx + 0x14]
cmp eax, edi
jne 0x442617
mov eax, dword [ebx + 0x60]
mov ecx, dword [ebx + 0x64]
mov edx, dword [ebx + 0x68]
mov dword [ebx + 0x70], eax
mov eax, dword [ebx + 0x6c]
mov dword [ebx + 0x74], ecx
mov dword [ebx + 0x78], edx
mov dword [ebx + 0x7c], eax
jmp 0x44265a
cmp eax, 2
je 0x44264a
cmp eax, 1
je 0x44264a
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x44265a
push 0x91f
push str.._socket.c
push str.Assertion_failed_at__s:_d
push 0x10
call fcn.00408640
add esp, 0x10
jmp 0x44265a
lea edi, [ebx + 0x70]
lea esi, [ebx + 0x13c]
call fcn.00441ac0
xor edi, edi
mov ecx, dword [ebx + 0x7c]
cmp ecx, edi
je 0x44266d
cmp dword [ebx + 0x78], edi
jl 0x44266d
mov eax, dword [ebx + 0x74]
add eax, ecx
jmp 0x44266f
xor eax, eax
cmp ecx, edi
mov dword [esp + 0x14], eax
je 0x44267e
mov eax, dword [ebx + 0x78]
cmp eax, edi
jge 0x442680
xor eax, eax
cmp dword [ebx + 0x7c], edi
mov ecx, eax
mov dword [esp + 0x10], ecx
je 0x442692
mov eax, dword [ebx + 0x78]
cmp eax, edi
jge 0x442694
xor eax, eax
cmp ecx, eax
jbe 0x4426bf
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x4426bf
push 0x927
push str.._socket.c
push str.Assertion_failed_at__s:_d
push 0x10
call fcn.00408640
add esp, 0x10
mov ecx, dword [ebx + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x4426f4
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x4426f4
push 0x92a
push str.._socket.c
push str.Assertion_failed_at__s:_d
push 0x10
call fcn.00408640
add esp, 0x10
mov eax, dword [ebx + 0x14]
cmp eax, edi
lea ecx, [ebx + 0x40]
mov dword [ecx], edi
jne 0x442732
push edi
lea edx, [ebx + 0x28]
push edx
lea eax, [ebx + 0x5c]
push eax
mov dword [eax], 0x10
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebx + 0x1c]
push ecx
lea ecx, [ebx + 0x3c]
push ecx
push 1
lea edx, [esp + 0x2c]
push edx
push eax
mov dword [ebx + 0x48], 1
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
jmp 0x442783
cmp eax, 2
je 0x442765
cmp eax, 1
je 0x442765
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x44278b
push 0x94b
push str.._socket.c
push str.Assertion_failed_at__s:_d
push 0x10
call fcn.00408640
add esp, 0x10
jmp 0x44278b
push edi
lea edx, [ebx + 0x28]
push edx
mov edx, dword [ebx + 0x1c]
push ecx
lea eax, [ebx + 0x3c]
push eax
push 1
lea ecx, [esp + 0x24]
push ecx
push edx
mov dword [ebx + 0x48], edi
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, edi
jne 0x442826
cmp dword [ebx + 0x48], edi
je 0x4427a1
mov eax, dword [ebx + 0x5c]
cmp eax, 0x10
je 0x4427a1
push eax
call fcn.00442420
add esp, 4
mov eax, dword [ebx + 0x38]
push eax
mov dword [ebx + 0x24], 2
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x4427dd
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x4427dd
push 0x956
push str.._socket.c
push str.Assertion_failed_at__s:_d
push 0x10
call fcn.00408640
add esp, 0x10
cmp dword [0x5426d0], 9
mov dword [ebx + 0x44], edi
jb 0x44290b
push 0x46000089
call fcn.00408960
add esp, 4
test eax, eax
je 0x44290b
mov ecx, dword [ebx + 0x3c]
mov edx, dword [esp + 0x10]
push ecx
push edx
push str.WIN32_I_O:_Socket_Receive_immediate_return___d__d_
push 0x46000089
call fcn.00408640
mov eax, dword [ebx + 0x24]
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x3e5
jne 0x442882
cmp dword [0x5426d0], 9
mov dword [ebx + 0x24], 1
mov dword [ebx + 0x44], eax
jb 0x44290b
push 0x46000089
call fcn.00408960
add esp, 4
test eax, eax
je 0x44290b
mov eax, dword [esp + 0x10]
push eax
push str.WIN32_I_O:_Socket_Receive_queued___d_
push 0x46000089
call fcn.00408640
mov eax, dword [ebx + 0x24]
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x38]
push ecx
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x4428bb
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x4428bb
push 0x96a
push str.._socket.c
push str.Assertion_failed_at__s:_d
push 0x10
call fcn.00408640
add esp, 0x10
cmp dword [0x5426d0], 9
mov dword [ebx + 0x24], 2
mov dword [ebx + 0x44], esi
jb 0x442902
push 0x46000089
call fcn.00408960
add esp, 4
test eax, eax
je 0x442902
lea ecx, [esp + 0xc]
mov edx, esi
call fcn.00408fd0
mov edx, dword [esp + 0x10]
push eax
push edx
push str.WIN32_I_O:_Socket_Receive_error___d_:__s
push 0x46000089
call fcn.00408640
add esp, 0x10
lea ecx, [esp + 0xc]
call fcn.00438d30
mov eax, dword [ebx + 0x24]
pop edi
pop esi
mov esp, ebp
pop ebp
ret