Function at 0x4d8b40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [edi], ecx
mov ecx, dword [ebp + 0x18]
mov dword [edi + 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 8], edx
mov edx, dword [ebp + 0x1c]
mov dword [edi + 0x10], ecx
mov ecx, dword [ebp + 0x20]
mov dword [edi + 4], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 0x14], edx
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], 1
mov dword [edi + 0x20], ebx
cmp eax, 0x7530
jbe 0x4d8e0e
mov dword [edi + 0x24], 0
mov ecx, dword [esi + 0x3c]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 4
mov dword [ebp + 0x18], edx
fild dword [ebp + 0x18]
test edx, edx
jns 0x4d8baf
fadd qword [0x5b4428]
mov edx, dword [ebp + 0x10]
fild dword [ebp + 0x10]
test edx, edx
jns 0x4d8bbf
fadd qword [0x5b4428]
fdiv qword [0x5b47e8]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x4d8bd2
fstp st(0)
jmp 0x4d8bd4
fstp st(1)
fnstcw word [ebp + 0x1a]
movzx eax, word [ebp + 0x1a]
or eax, 0xc00
mov dword [ebp + 0x1c], eax
fldcw word [ebp + 0x1c]
fistp qword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
fldcw word [ebp + 0x1a]
cmp eax, 0x10000
jb 0x4d8c00
mov eax, 0x10000
jmp 0x4d8c09
test eax, eax
jne 0x4d8c0c
mov eax, 0x8000
mov dword [ebp - 8], eax
shr ecx, 0xa
push ecx
push eax
push str.using_block_size__u_for_processor_cache_size__u_kB_n
push esi
call fcn.00410350
mov esi, dword [esi + 0x44]
add esp, 0x10
cmp esi, 2
jb 0x4d8c30
cmp dword [ebp + 0x10], 0x30d40
jae 0x4d8c37
mov esi, 1
jmp 0x4d8c41
cmp esi, 0x20
jb 0x4d8c41
mov esi, 0x20
xor edx, edx
mov eax, ebx
div esi
xor ecx, ecx
mov dword [ebp + 0x1c], ecx
mov dword [ebp - 4], ecx
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], eax
xor eax, eax
mov dword [ebp + 0x18], eax
cmp ebx, ecx
jbe 0x4d8ca3
cmp ebx, 2
jl 0x4d8c8c
mov ecx, dword [ebp + 8]
lea edx, [ebx - 2]
shr edx, 1
add ecx, 0x14
inc edx
lea eax, [edx + edx]
mov dword [ebp + 0x10], eax
mov eax, dword [ecx - 0x10]
add dword [ebp + 0x1c], eax
mov eax, dword [ecx]
add dword [ebp - 4], eax
add ecx, 0x20
dec edx
jne 0x4d8c75
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
jae 0x4d8c99
mov edx, dword [ebp + 8]
add ecx, ecx
mov eax, dword [edx + ecx*8 + 4]
mov ecx, dword [ebp + 0x1c]
add ecx, dword [ebp - 4]
add eax, ecx
xor ecx, ecx
xor edx, edx
div esi
xor edx, edx
mov dword [ebp + 0x18], ecx
mov dword [ebp - 0x10], ecx
inc eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp + 0x10], eax
cmp ebx, eax
jbe 0x4d8d9d
mov esi, dword [ebp + 8]
add esi, 4
mov dword [ebp - 4], esi
mov dword [ebp + 0x1c], eax
lea esi, [edi + 0x28]
nop
dec ebx
cmp eax, ebx
je 0x4d8d6c
lea eax, [edx + 1]
mov dword [ebp - 0x14], eax
cmp eax, dword [edi + 0x1c]
je 0x4d8d6c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x1c]
add eax, dword [ebp - 0xc]
cmp dword [ebp + 0x18], eax
jb 0x4d8d55
mov eax, dword [ebp - 0xc]
add dword [ebp + 0x1c], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x18]
mov ecx, esi
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp + 0x20]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp - 4]
mov dword [esi], edx
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0x18], 0xbb8
mov eax, dword [eax]
shr eax, 1
sub ebx, eax
add esi, 0x54
cmp ebx, dword [ebp + 0x1c]
jbe 0x4d8d4e
mov eax, dword [ebp + 0x10]
dec eax
mov dword [ecx + 0xc], eax
mov ecx, dword [ecx + 0xc]
inc ecx
mov dword [ebp - 0x10], ecx
inc dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
add dword [ebp - 4], 0x10
cmp eax, ebx
jb 0x4d8cd0
jmp 0x4d8d9d
mov esi, dword [ebp + 8]
mov eax, edx
imul eax, eax, 0x54
lea eax, [eax + edi + 0x28]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp + 0x20]
mov dword [eax], edx
inc edx
mov dword [eax + 4], esi
mov dword [eax + 0xc], ebx
mov dword [eax + 0x18], 0xbb8
mov dword [eax + 0x24], ecx
mov dword [edi + 0x1c], edx
xor ebx, ebx
dec edx
je 0x4d8e02
lea esi, [edi + 0x74]
push 0
push 1
push 0
push 0
mov dword [esi - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
lea edx, [esi - 0x4c]
push edx
push 0x4d8780
push 0
push 0
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi - 4], eax
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [edi + 0x1c]
inc ebx
dec ecx
add esi, 0x54
cmp ebx, ecx
jb 0x4d8da8
imul ebx, ebx, 0x54
lea eax, [ebx + edi + 0x28]
call fcn.004d81f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret