Function at 0x497d50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
xor edx, edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x497fa2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov dword [esi + 0x24], eax
fld dword [esi + 0x14]
fadd dword [esi + 0xc]
fadd dword [esi + 0x30]
fstp dword [ebp - 0x18]
wait
mov dword [ebp - 0xc], 0xa
mov dword [ebp - 0x14], 0x3bcde32e
push 0x3e9
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x497d28]
call fcn.00406bdc
add esp, 4
xor ebx, ebx
mov dword [ebp - 0x44], ebx
fild dword [ebp - 0x44]
fmul dword [ebp - 0x14]
fstp dword [ebp - 0x1c]
wait
cmp byte [0x533384], 0
je 0x497ddd
fld xword [0x497fb4]
fcomp dword [ebp - 0x1c]
wait
fnstsw ax
sahf
jbe 0x497ddd
fld xword [0x497fc0]
fadd dword [ebp - 0x1c]
fstp dword [ebp - 0x1c]
wait
fld dword [ebp - 0x1c]
fcomp dword [esi + 0x24]
wait
fnstsw ax
sahf
jae 0x497df3
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + ebx*4], edx
jmp 0x497e31
fld dword [esi + 0x24]
fadd dword [esi + 0x20]
fcomp dword [ebp - 0x1c]
wait
fnstsw ax
sahf
jbe 0x497e27
fld dword [ebp - 0x1c]
fsub dword [esi + 0x24]
fmul dword [0x497fcc]
fdiv dword [esi + 0x20]
call fcn.004034a0
mov edx, dword [0x533380]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 4]
mov dword [edx + ebx*4], eax
jmp 0x497e31
mov eax, dword [ebp - 4]
mov dword [eax + ebx*4], 0x437f0000
inc ebx
cmp ebx, 0x3e9
jne 0x497dab
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x24], eax
xor ebx, ebx
mov dword [ebp - 0x44], ebx
fild dword [ebp - 0x44]
fmul dword [ebp - 0x14]
fstp dword [ebp - 0x1c]
wait
cmp byte [0x533384], 0
je 0x497e7e
fld xword [0x497fb4]
fcomp dword [ebp - 0x1c]
wait
fnstsw ax
sahf
jbe 0x497e7e
fld xword [0x497fc0]
fadd dword [ebp - 0x1c]
fstp dword [ebp - 0x1c]
wait
fild dword [ebp - 0xc]
fmul dword [ebp - 0x14]
fadd dword [ebp - 0x1c]
fcomp dword [esi + 0x24]
wait
fnstsw ax
sahf
jb 0x497e9f
fld dword [esi + 0x24]
fadd dword [esi + 0x20]
fcomp dword [ebp - 0x1c]
wait
fnstsw ax
sahf
jae 0x497ea7
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jmp 0x497eae
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
add eax, ebx
cmp eax, 0x3e8
jle 0x497ec4
mov eax, 0x3e8
sub eax, ebx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x44], ebx
fild dword [ebp - 0x44]
fmul dword [ebp - 0x14]
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.0040345c
fmul dword [ebp - 0x18]
fadd dword [esi + 0x18]
fstp dword [ebp - 0x40]
wait
mov dword [ebp - 0x44], ebx
fild dword [ebp - 0x44]
fmul dword [ebp - 0x14]
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.0040344c
fmul dword [ebp - 0x18]
fsubr dword [esi + 0x1c]
fstp dword [ebp - 0x3c]
wait
fild dword [ebp - 0x10]
fmul dword [ebp - 0x14]
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.0040345c
fmul dword [ebp - 0x18]
fadd dword [esi + 0x18]
fstp dword [ebp - 0x34]
wait
fild dword [ebp - 0x10]
fmul dword [ebp - 0x14]
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.0040344c
fmul dword [ebp - 0x18]
fsubr dword [esi + 0x1c]
fstp dword [ebp - 0x30]
wait
mov eax, dword [ebp - 4]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x2c], eax
fld dword [ebp - 0x2c]
fadd dword [ebp - 0x38]
fdiv dword [0x497fd0]
fstp dword [ebp - 0x20]
wait
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x28]
mov eax, dword [esi + 0x3c]
call dword [esi + 0x38]
add ebx, dword [ebp - 8]
cmp ebx, 0x3e8
jl 0x497e4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497fa9
lea eax, [ebp - 4]
mov edx, dword [0x497d28]
call fcn.00406be8
ret