Function at 0x4213d8
Capabilities:
Allocate or change rwx memory
Check for time delay via queryperformancecounter
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
push eax
mov eax, 3
add esp, 0xfffff004
push eax
dec eax
jne 0x4213e2
mov eax, dword [esp + 0x3000]
add esp, 0xfffff14c
mov esi, eax
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_QueryPerformanceFrequency
xor eax, eax
mov dword [0x43a008], eax
mov ebx, 0x3e8
lea edi, [esp + 0x38]
call fcn.00402b74
fild qword [esi + 0x58]
fmulp st(1)
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [esp + 0x3eb8]
call fcn.00406208
mov eax, dword [esp + 0x3eb0]
mov edx, dword [esp + 0x3eb4]
push edx
push eax
mov eax, dword [esi + 0x50]
dec eax
xor edx, edx
not eax
not edx
and eax, dword [esp]
and edx, dword [esp + 4]
add esp, 8
mov dword [edi], eax
mov dword [edi + 4], edx
add edi, 8
dec ebx
jne 0x421415
push 0
push 0
push dword [esp + 0x44]
push dword [esp + 0x44]
mov eax, dword [esi + 0x28]
push eax
call sub.kernel32.dll_SetFilePointerEx
push 4
push 0x1000
mov eax, dword [esi + 0x50]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [esp], eax
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 0x50]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0x28]
push eax
call sub.kernel32.dll_ReadFile
mov ebx, 0x3e7
lea edi, [esp + 0x40]
lea ebp, [esp + 0x1f78]
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
push 0
push 0
push dword [edi + 4]
push dword [edi]
mov eax, dword [esi + 0x28]
push eax
call sub.kernel32.dll_SetFilePointerEx
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 0x50]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0x28]
push eax
call sub.kernel32.dll_ReadFile
lea eax, [esp + 0x18]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, dword [esp + 0x10]
sbb edx, dword [esp + 0x14]
mov dword [ebp], eax
mov dword [ebp + 4], edx
mov eax, dword [0x4468a8]
call fcn.0040bbc0
add ebp, 8
add edi, 8
dec ebx
jne 0x4214b4
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov ebx, 0x3e7
lea ecx, [esp + 0x1f78]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
add eax, dword [esp + 0x20]
adc edx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
add ecx, 8
dec ebx
jne 0x421538
push 0
push 0x3e7
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
call fcn.00404654
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov ebx, 0x3e7
lea ecx, [esp + 0x1f78]
fild qword [ecx]
fild qword [esp + 0x28]
fmul dword [0x4216a8]
fcompp
fnstsw ax
sahf
jb 0x4215a1
fild qword [ecx]
fild qword [esp + 0x28]
fdiv dword [0x4216a8]
fcompp
fnstsw ax
sahf
jbe 0x4215ae
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
mov eax, dword [esp + 0x2c]
mov dword [ecx + 4], eax
add ecx, 8
dec ebx
jne 0x42157b
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov ebx, 0x3e7
lea ecx, [esp + 0x1f78]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
add eax, dword [esp + 0x20]
adc edx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
add ecx, 8
dec ebx
jne 0x4215d0
push 0
push 0x3e8
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
call fcn.00404630
mov dword [esp + 0x3eb0], eax
mov dword [esp + 0x3eb4], edx
fild qword [esp + 0x3eb0]
fild qword [esp + 8]
fdivp st(1)
fdiv dword [0x4216ac]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov al, 0xfe
call fcn.00413684
fstp qword [esp + 0x30]
wait
fld qword [esp + 0x30]
call fcn.00402a1c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [esp + 0x3eb8]
call fcn.00406208
mov al, byte [esp + 0x3eb0]
mov byte [esi + 0x6b2], al
fld qword [esp + 0x30]
call fcn.00402a3c
fmul dword [0x4216b0]
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [esp + 0x3eb8]
call fcn.00406208
mov al, byte [esp + 0x3eb0]
mov byte [esi + 0x6b3], al
push 0x8000
push 0
mov eax, dword [esp + 8]
push eax
call sub.kernel32.dll_VirtualFree_1
add esp, 0x3eb8
pop ebp
pop edi
pop esi
pop ebx
ret