Function at 0x459464
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 0x4596b7
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 0x4596a2
push dword fs:[edx]
mov dword fs:[edx], esp
push edi
mov eax, dword [ebx]
add eax, 0x40
mov ecx, 1
mov edx, dword [0x45938c]
call fcn.00405834
add esp, 4
cmp esi, 1
jle 0x45959e
cmp byte [0x48ee00], 0
je 0x45954e
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 0x4595b7
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 0x45951f
jmp 0x4595b7
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 0x4595b7
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 0x45956f
jmp 0x4595b7
mov eax, dword [ebx]
mov eax, dword [eax + 0x14]
mov edx, dword [ebx]
add eax, dword [edx + 0x1c]
dec eax
sar eax, 1
jns 0x4595b0
adc eax, 0
mov edx, dword [ebx]
mov edx, dword [edx + 0x40]
mov dword [edx], eax
cmp dword [ebp - 0xc], 1
jg 0x4595c4
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x4595f5
cmp byte [0x48ee00], 0
je 0x4595db
fild dword [ebp - 8]
fild dword [ebp - 0xc]
fdivp st(1)
fstp dword [ebp - 0x14]
wait
jmp 0x4595f5
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 [0x4593b8]
call fcn.00405834
add esp, 4
mov esi, dword [ebp - 0x10]
dec esi
test esi, esi
jl 0x45968f
inc esi
xor edi, edi
cmp dword [ebp - 0xc], 1
jg 0x459636
mov eax, dword [ebx]
mov eax, dword [eax + 0x18]
mov edx, dword [ebx]
add eax, dword [edx + 0x20]
dec eax
sar eax, 1
jns 0x459683
adc eax, 0
jmp 0x459683
cmp byte [0x48ee00], 0
je 0x459662
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 0x459683
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 0x45961c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4596a9
call fcn.00456d44
ret