Function at 0x45b588
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
mov eax, dword [edi + 4]
call fcn.00459b70
test al, al
je 0x45b794
mov eax, dword [edi + 8]
call fcn.00459b70
test al, al
je 0x45b794
mov eax, esi
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0xc], eax
mov eax, esi
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [ebp - 8], eax
mov dword [ebp - 0x118], 2
mov eax, dword [edi + 4]
mov dword [ebp - 0x114], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 0x118]
push eax
push 0
call sub.WS2_32.DLL_select
mov esi, eax
mov eax, esi
call fcn.00459b78
test al, al
je 0x45b951
test esi, esi
jle 0x45b951
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x118], 1
mov eax, dword [edi + 4]
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 0x118]
push eax
push 0
call sub.WS2_32.DLL_select
mov esi, eax
mov eax, esi
call fcn.00459b78
test al, al
je 0x45b6dd
test esi, esi
jle 0x45b6dd
mov dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x128]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [edi + 4]
push eax
call sub.WS2_32.DLL_recvfrom
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jle 0x45b6dd
lea ecx, [ebp - 0x158]
mov edx, dword [ebp - 0x124]
mov eax, dword [0x4597d8]
call fcn.0045a3b4
mov eax, dword [ebp + 0xc]
lea esi, [ebp - 0x158]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ax, word [ebp - 0x126]
call fcn.00459b5c
mov edx, dword [ebp + 8]
mov word [edx], ax
mov bl, 1
jmp 0x45b951
mov dword [ebp - 0x118], 1
mov eax, dword [edi + 8]
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 0x118]
push eax
push 0
call sub.WS2_32.DLL_select
mov esi, eax
mov eax, esi
call fcn.00459b78
test al, al
je 0x45b951
test esi, esi
jle 0x45b951
mov dword [ebp - 0x14], 0x1c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x144]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [edi + 8]
push eax
call sub.WS2_32.DLL_recvfrom
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jle 0x45b951
lea ecx, [ebp - 0x158]
lea edx, [ebp - 0x13c]
mov eax, dword [0x4597d8]
call fcn.0045a3d4
mov eax, dword [ebp + 0xc]
lea esi, [ebp - 0x158]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ax, word [ebp - 0x142]
call fcn.00459b5c
mov edx, dword [ebp + 8]
mov word [edx], ax
mov bl, 1
jmp 0x45b951
mov eax, dword [edi + 4]
call fcn.00459b70
test al, al
je 0x45b87b
mov eax, esi
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0xc], eax
mov eax, esi
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [ebp - 8], eax
mov dword [ebp - 0x118], 1
mov eax, dword [edi + 4]
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 0x118]
push eax
push 0
call sub.WS2_32.DLL_select
mov esi, eax
mov eax, esi
call fcn.00459b78
test al, al
je 0x45b951
test esi, esi
jle 0x45b951
mov dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x128]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [edi + 4]
push eax
call sub.WS2_32.DLL_recvfrom
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jle 0x45b951
lea ecx, [ebp - 0x158]
mov edx, dword [ebp - 0x124]
mov eax, dword [0x4597d8]
call fcn.0045a3b4
mov eax, dword [ebp + 0xc]
lea esi, [ebp - 0x158]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ax, word [ebp - 0x126]
call fcn.00459b5c
mov edx, dword [ebp + 8]
mov word [edx], ax
mov bl, 1
jmp 0x45b951
mov eax, dword [edi + 8]
call fcn.00459b70
test al, al
je 0x45b951
mov eax, esi
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0xc], eax
mov eax, esi
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [ebp - 8], eax
mov dword [ebp - 0x118], 1
mov eax, dword [edi + 8]
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 0x118]
push eax
push 0
call sub.WS2_32.DLL_select
mov esi, eax
mov eax, esi
call fcn.00459b78
test al, al
je 0x45b951
test esi, esi
jle 0x45b951
mov dword [ebp - 0x14], 0x1c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x144]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [edi + 8]
push eax
call sub.WS2_32.DLL_recvfrom
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jle 0x45b951
lea ecx, [ebp - 0x158]
lea edx, [ebp - 0x13c]
mov eax, dword [0x4597d8]
call fcn.0045a3d4
mov eax, dword [ebp + 0xc]
lea esi, [ebp - 0x158]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ax, word [ebp - 0x142]
call fcn.00459b5c
mov edx, dword [ebp + 8]
mov word [edx], ax
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10