Function at 0x4ad27c
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 0x4ad4ce
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 [0x4ad254]
call fcn.004066f4
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 [0x6d3ad8], 0
je 0x4ad309
fld xword [0x4ad4e0]
fcomp dword [ebp - 0x1c]
wait
fnstsw ax
sahf
jbe 0x4ad309
fld xword [0x4ad4ec]
fadd dword [ebp - 0x1c]
fstp dword [ebp - 0x1c]
wait
fld dword [ebp - 0x1c]
fcomp dword [esi + 0x24]
wait
fnstsw ax
sahf
jae 0x4ad31f
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + ebx*4], edx
jmp 0x4ad35d
fld dword [esi + 0x24]
fadd dword [esi + 0x20]
fcomp dword [ebp - 0x1c]
wait
fnstsw ax
sahf
jbe 0x4ad353
fld dword [ebp - 0x1c]
fsub dword [esi + 0x24]
fmul dword [0x4ad4f8]
fdiv dword [esi + 0x20]
call fcn.00403460
mov edx, dword [0x6d3ad4]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 4]
mov dword [edx + ebx*4], eax
jmp 0x4ad35d
mov eax, dword [ebp - 4]
mov dword [eax + ebx*4], 0x437f0000
inc ebx
cmp ebx, 0x3e9
jne 0x4ad2d7
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 [0x6d3ad8], 0
je 0x4ad3aa
fld xword [0x4ad4e0]
fcomp dword [ebp - 0x1c]
wait
fnstsw ax
sahf
jbe 0x4ad3aa
fld xword [0x4ad4ec]
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 0x4ad3cb
fld dword [esi + 0x24]
fadd dword [esi + 0x20]
fcomp dword [ebp - 0x1c]
wait
fnstsw ax
sahf
jae 0x4ad3d3
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jmp 0x4ad3da
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
add eax, ebx
cmp eax, 0x3e8
jle 0x4ad3f0
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.0040341c
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.0040340c
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.0040341c
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.0040340c
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 [0x4ad4fc]
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 0x4ad378
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ad4d5
lea eax, [ebp - 4]
mov edx, dword [0x4ad254]
call fcn.00406700
ret