Function at 0x4c8df8
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x18]
cmp eax, 1
jl 0x4c909c
add eax, eax
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [edi + 0x30]
mov ecx, 2
mov edx, dword [0x4bbf4c]
call fcn.004067f8
add esp, 8
push 1
mov ecx, dword [edi + 0x18]
inc ecx
mov dl, 1
mov eax, dword [0x4c10f0]
call fcn.004c1158
mov dword [ebp - 0x34], eax
xor edx, edx
push ebp
push 0x4c9095
push dword fs:[edx]
mov dword fs:[edx], esp
fild dword [edi + 0x1c]
fdiv dword [0x4c90a4]
fld xword [0x4c90a8]
faddp st(1)
fild dword [edi + 0x18]
fmulp st(1)
call fcn.00402ff4
mov esi, eax
fild dword [edi + 0x1c]
fdiv dword [0x4c90b4]
fsubr dword [0x4c90b8]
mov dword [ebp - 0x40], esi
fild dword [ebp - 0x40]
fild dword [edi + 0x18]
fdivp st(1)
fsubr dword [0x4c90b8]
fild dword [edi + 0x18]
fmulp st(1)
fdiv dword [0x4c90bc]
fmulp st(1)
fadd dword [0x4c90b8]
fstp qword [ebp - 0x10]
wait
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0xc]
dec eax
test eax, eax
jl 0x4c8ee6
inc eax
mov dword [ebp - 0x38], eax
xor ebx, ebx
cmp esi, ebx
jle 0x4c8ed2
push 0xff
xor ecx, ecx
mov edx, ebx
mov eax, dword [ebp - 0x34]
call fcn.004c5314
jmp 0x4c8ee0
push 0
xor ecx, ecx
mov edx, ebx
mov eax, dword [ebp - 0x34]
call fcn.004c5314
inc ebx
dec dword [ebp - 0x38]
jne 0x4c8ebb
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 1
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0xc]
xor edx, edx
xor eax, eax
call fcn.004076e8
lea eax, [ebp - 0x50]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
call fcn.004c163c
fild dword [ebp - 4]
fdiv dword [0x4c90c0]
fstp qword [ebp - 0x20]
wait
mov eax, dword [ebp - 4]
dec eax
test eax, eax
jl 0x4c907f
inc eax
mov dword [ebp - 0x38], eax
xor ebx, ebx
mov eax, dword [ebp - 4]
dec eax
test eax, eax
jl 0x4c9075
inc eax
mov dword [ebp - 0x3c], eax
xor esi, esi
mov dword [ebp - 0x40], ebx
fild dword [ebp - 0x40]
fsubr qword [ebp - 0x20]
mov dword [ebp - 0x54], ebx
fild dword [ebp - 0x54]
fsubr qword [ebp - 0x20]
fmulp st(1)
mov dword [ebp - 0x58], esi
fild dword [ebp - 0x58]
fsubr qword [ebp - 0x20]
mov dword [ebp - 0x5c], esi
fild dword [ebp - 0x5c]
fsubr qword [ebp - 0x20]
fmulp st(1)
faddp st(1)
fstp qword [ebp - 0x18]
wait
fld qword [ebp - 0x18]
fsqrt
fstp qword [ebp - 0x10]
wait
fld qword [ebp - 0x10]
call fcn.00403000
mov dword [ebp - 0x40], eax
fild dword [ebp - 0x40]
fsubr qword [ebp - 0x10]
fstp qword [ebp - 0x28]
wait
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0
push 0
mov eax, dword [ebp - 0x34]
call fcn.004c518c
and eax, 0xff
mov dword [ebp - 0x40], eax
fild dword [ebp - 0x40]
fld dword [0x4c90b8]
fsub qword [ebp - 0x28]
fmulp st(1)
fstp xword [ebp - 0x68]
wait
fld qword [ebp - 0x10]
fadd dword [0x4c90b8]
add esp, 0xfffffff8
fstp qword [esp]
wait
push 0
push 0
mov eax, dword [ebp - 0x34]
call fcn.004c518c
and eax, 0xff
mov dword [ebp - 0x54], eax
fild dword [ebp - 0x54]
fmul qword [ebp - 0x28]
fld xword [ebp - 0x68]
faddp st(1)
fstp qword [ebp - 0x30]
wait
call fcn.004035f4
fsub dword [0x4c90c4]
fld qword [ebp - 0x30]
fdiv dword [0x4c90b4]
fmulp st(1)
fdiv dword [0x4c90c8]
fld qword [ebp - 0x30]
fdiv dword [0x4c90b4]
faddp st(1)
mov eax, dword [edi + 0x30]
mov eax, dword [eax + ebx*4]
fstp qword [eax + esi*8]
wait
mov eax, dword [edi + 0x30]
mov eax, dword [eax + ebx*4]
fld qword [eax + esi*8]
fcomp dword [0x4c90b8]
fnstsw ax
sahf
jbe 0x4c9048
mov eax, dword [edi + 0x30]
mov eax, dword [eax + ebx*4]
xor edx, edx
mov dword [eax + esi*8], edx
mov dword [eax + esi*8 + 4], 0x3ff00000
jmp 0x4c906b
mov eax, dword [edi + 0x30]
mov eax, dword [eax + ebx*4]
fld qword [eax + esi*8]
fcomp dword [0x4c90cc]
fnstsw ax
sahf
jae 0x4c906b
mov eax, dword [edi + 0x30]
mov eax, dword [eax + ebx*4]
xor edx, edx
mov dword [eax + esi*8], edx
mov dword [eax + esi*8 + 4], edx
inc esi
dec dword [ebp - 0x3c]
jne 0x4c8f43
inc ebx
dec dword [ebp - 0x38]
jne 0x4c8f31
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c909c
mov eax, dword [ebp - 0x34]
call fcn.004044a8
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret