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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x413e26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c4
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x40]
xor ebx, ebx
push ecx
mov ecx, ebp
mov byte [esp + 0x1b], 1
mov dword [esp + 0x28], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call fcn.004052b0
lea ecx, [esp + 0x40]
mov dword [esp + 0x1dc], ebx
call fcn.00405800
lea edx, [esp + 0x38]
mov esi, eax
push ebx
mov ecx, 0x20
lea edi, [esp + 0x154]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00406c20
add esp, 8
mov ecx, ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00402f10
lea ebx, [ebx]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 4]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
lea eax, [ebp + 0x38]
push 0
push eax
call fcn.00406c20
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
add esp, 8
push ebx
push ecx
push edx
mov ecx, ebp
call fcn.004031f0
mov edi, dword [ebp + 0x18]
mov eax, esi
mov esi, dword [ebp + 0x1c]
cdq
add edi, eax
mov dword [ebp + 0x18], edi
mov edi, dword [esp + 0x34]
adc esi, edx
mov dword [ebp + 0x1c], esi
mov eax, dword [edi]
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push eax
call esi
mov ecx, dword [edi + 8]
push ecx
mov ebx, eax
call esi
mov edx, dword [edi + 4]
push edx
mov esi, eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [ebp + 0x3c]
mov edx, dword [ebp + 0x38]
sub ecx, esi
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
sub edx, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x38], eax
fmul qword [0x415378]
mov dword [esp + 0x3c], esi
fild dword [esp + 0x18]
faddp st(1)
fld qword [esp + 0x28]
fcomp qword [0x4157b8]
fnstsw ax
test ah, 0x44
jnp 0x40423e
fld qword [esp + 0x28]
fsubr st(1)
fcom qword [0x4157b8]
fnstsw ax
test ah, 5
jp 0x40422f
fchs
fsub qword [ebp + 0x30]
fmul qword [0x415a58]
fadd qword [ebp + 0x30]
fstp qword [ebp + 0x30]
test ebx, ebx
fstp qword [esp + 0x28]
jge 0x40424d
mov byte [esp + 0x17], 0
neg ebx
mov ecx, dword [esp + 0x24]
lea eax, [ecx + 1]
cmp ebx, eax
je 0x404270
jge 0x404260
inc dword [esp + 0x1c]
jmp 0x404270
mov edx, dword [esp + 0x20]
mov eax, ebx
sub eax, ecx
lea eax, [edx + eax - 1]
mov dword [esp + 0x20], eax
cmp ebx, ecx
jle 0x404278
mov dword [esp + 0x24], ebx
mov al, byte [esp + 0x17]
test al, al
jne 0x404170
lea esi, [ebp + 0x48]
push 0
push esi
call fcn.00406c20
mov ecx, dword [0x41af50]
add esp, 8
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x44]
mov eax, dword [ebp + 0x40]
mov edi, dword [esp + 0x20]
push ebx
push edx
mov edx, dword [esi + 4]
sub edx, ecx
mov ecx, dword [esi]
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
mov edx, dword [ebp + 0x1c]
sub ecx, eax
mov eax, dword [ebp + 0x18]
fmul qword [0x415378]
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
push edi
sub esp, 8
mov ecx, ebp
faddp st(1)
fstp qword [esp]
push 0
push 0
push edx
push eax
call fcn.00402470
mov ecx, dword [0x41af50]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea edx, [esp + 0xc8]
push edx
mov ecx, ebp
call fcn.00405230
lea ecx, [esp + 0xc8]
mov byte [esp + 0x1dc], 1
call fcn.00406510
test al, al
jne 0x404345
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x44]
mov edx, dword [ebp + 0x40]
push ebx
push eax
mov eax, dword [esi + 4]
push edi
push ecx
mov ecx, dword [esi]
push edx
mov edx, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push ecx
push edx
push eax
mov ecx, ebp
call fcn.00403ed0
mov ecx, dword [0x41af44]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [esp + 0x150]
push 0x41af40
push edx
call fcn.00401640
mov eax, dword [0x41af44]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea ecx, [esp + 0xc8]
mov byte [esp + 0x1dc], 0
call fcn.00408840
lea ecx, [esp + 0x40]
mov dword [esp + 0x1dc], 0xffffffff
call fcn.00408840
mov ecx, dword [esp + 0x1d4]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret