Function at 0x45952c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
add ebx, 0xfffffffc
xor eax, eax
push ebp
push 0x45977f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebx]
sub eax, dword [edx + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x20]
mov edx, dword [ebx]
sub eax, dword [edx + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov eax, dword [ebx]
sub esi, dword [eax + 4]
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
mov edx, dword [ebx]
sub eax, dword [edx + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx]
mov edi, dword [eax + 0x2c]
mov eax, dword [ebx]
sub edi, dword [eax + 0x24]
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
mov edx, dword [ebx]
sub eax, dword [edx + 0x28]
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x45976a
push dword fs:[edx]
mov dword fs:[edx], esp
push edi
mov eax, dword [ebx]
add eax, 0x40
mov ecx, 1
mov edx, dword [0x459454]
call fcn.00405828
add esp, 4
cmp esi, 1
jle 0x459666
cmp byte [0x48ce00], 0
je 0x459616
fild dword [ebp - 4]
mov dword [ebp - 0x18], esi
fild dword [ebp - 0x18]
fdivp st(1)
fstp dword [ebp - 0x14]
wait
mov esi, edi
dec esi
test esi, esi
jl 0x45967f
inc esi
xor edi, edi
mov eax, dword [ebx]
mov eax, dword [eax + 0x24]
add eax, edi
mov edx, dword [ebx]
sub eax, dword [edx + 4]
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fmul dword [ebp - 0x14]
mov eax, dword [ebx]
fild dword [eax + 0x14]
faddp st(1)
call fcn.00402e74
mov edx, dword [ebx]
mov edx, dword [edx + 0x40]
mov dword [edx + edi*4], eax
inc edi
dec esi
jne 0x4595e7
jmp 0x45967f
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
dec esi
mov dword [ebp - 0x1c], esi
fild dword [ebp - 0x1c]
fdivp st(1)
fstp dword [ebp - 0x14]
wait
mov esi, edi
dec esi
test esi, esi
jl 0x45967f
inc esi
xor edi, edi
mov eax, dword [ebx]
mov eax, dword [eax + 0x24]
add eax, edi
mov edx, dword [ebx]
sub eax, dword [edx + 4]
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fmul dword [ebp - 0x14]
mov eax, dword [ebx]
fild dword [eax + 0x14]
faddp st(1)
call fcn.00402e68
mov edx, dword [ebx]
mov edx, dword [edx + 0x40]
mov dword [edx + edi*4], eax
inc edi
dec esi
jne 0x459637
jmp 0x45967f
mov eax, dword [ebx]
mov eax, dword [eax + 0x14]
mov edx, dword [ebx]
add eax, dword [edx + 0x1c]
dec eax
sar eax, 1
jns 0x459678
adc eax, 0
mov edx, dword [ebx]
mov edx, dword [edx + 0x40]
mov dword [edx], eax
cmp dword [ebp - 0xc], 1
jg 0x45968c
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x4596bd
cmp byte [0x48ce00], 0
je 0x4596a3
fild dword [ebp - 8]
fild dword [ebp - 0xc]
fdivp st(1)
fstp dword [ebp - 0x14]
wait
jmp 0x4596bd
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fdivp st(1)
fstp dword [ebp - 0x14]
wait
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebx]
add eax, 0x44
mov ecx, 1
mov edx, dword [0x459480]
call fcn.00405828
add esp, 4
mov esi, dword [ebp - 0x10]
dec esi
test esi, esi
jl 0x459757
inc esi
xor edi, edi
cmp dword [ebp - 0xc], 1
jg 0x4596fe
mov eax, dword [ebx]
mov eax, dword [eax + 0x18]
mov edx, dword [ebx]
add eax, dword [edx + 0x20]
dec eax
sar eax, 1
jns 0x45974b
adc eax, 0
jmp 0x45974b
cmp byte [0x48ce00], 0
je 0x45972a
mov eax, dword [ebx]
mov eax, dword [eax + 0x28]
add eax, edi
mov edx, dword [ebx]
sub eax, dword [edx + 8]
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fmul dword [ebp - 0x14]
mov eax, dword [ebx]
fild dword [eax + 0x18]
faddp st(1)
call fcn.00402e74
jmp 0x45974b
mov eax, dword [ebx]
mov eax, dword [eax + 0x28]
add eax, edi
mov edx, dword [ebx]
sub eax, dword [edx + 8]
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fmul dword [ebp - 0x14]
mov eax, dword [ebx]
fild dword [eax + 0x18]
faddp st(1)
call fcn.00402e68
mov edx, dword [ebx]
mov edx, dword [edx + 0x44]
mov dword [edx + edi*4], eax
inc edi
dec esi
jne 0x4596e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459771
call fcn.00456e0c
ret