Function at 0x414e80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x8d4
push ebx
push ebp
mov ebp, dword [esp + 0x8e4]
mov eax, dword [ebp + 0x24]
test eax, eax
push esi
push edi
mov dword [esp + 0x28], eax
jne 0x414eb8
mov eax, dword [esp + 0x8e8]
mov ecx, dword [eax + 0x34]
mov eax, dword [ecx + 0xdc4]
test eax, eax
mov dword [esp + 0x28], eax
je 0x415198
mov edx, dword [eax + 0x50]
fldz
mov eax, dword [eax + 0x4c]
imul edx, edx, 0x268
mov ecx, dword [eax + 0x54]
lea ebx, [edx + ecx - 0x268]
xor edx, edx
cmp dword [ebp + 0x50], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], edx
jg 0x4151a7
fstp st(0)
cmp dword [0x4e51ec], 0
je 0x414f0c
mov eax, dword [0x4e51d0]
push 0
mov dword [0x4e51ec], 0
mov edx, dword [eax]
push 0
push eax
mov eax, dword [edx + 0x104]
call eax
mov ecx, 1
cmp dword [0x4e51f8], ecx
je 0x414f5a
mov eax, dword [0x4e51d0]
push ecx
mov dword [0x4e51f8], ecx
mov edx, dword [eax]
push 0x1b
push eax
mov eax, dword [edx + 0xe4]
call eax
mov eax, dword [0x4e51d0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xe4]
push 5
push 0x13
push eax
call edx
mov eax, dword [0x4e51d0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xe4]
push 6
push 0x14
push eax
call edx
mov eax, dword [ebp + 0x168]
fild dword [ebp + 8]
imul eax, dword [ebp + 0x58]
fld dword [0x499a48]
fsub st(1), st(0)
fxch st(1)
fstp dword [esp + 0x60]
mov ecx, dword [esp + 0x8e8]
mov edx, dword [ecx + 0x1c]
and edx, 0x80000001
mov dword [esp + 0x14], eax
mov eax, 0x40ffff00
mov dword [esp + 0x70], eax
fild dword [esp + 0x14]
fiadd dword [ebp + 0xc]
fsubrp st(1)
fld1
fsub st(1), st(0)
fxch st(1)
fstp dword [esp + 0x64]
fstp dword [esp + 0x6c]
fld dword [0x499ac0]
fstp dword [esp + 0x68]
fldz
fst dword [esp + 0x78]
fstp dword [esp + 0x7c]
jns 0x414fc4
dec edx
or edx, 0xfffffffe
inc edx
neg edx
sbb edx, edx
and edx, 0xffffff
mov dword [esp + 0x74], edx
mov ecx, 8
lea esi, [esp + 0x60]
lea edi, [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [esp + 0x60]
lea edi, [esp + 0xa0]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [esp + 0x60]
lea edi, [esp + 0xc0]
rep movsd dword es:[edi], dword [esi]
fld dword [ebx + 0xc]
fadd dword [0x499a10]
fadd dword [esp + 0x64]
fst dword [esp + 0x84]
fild dword [ebp + 0x10]
fadd dword [esp + 0x60]
push 0x20
lea edx, [esp + 0x64]
push edx
fst dword [esp + 0xa8]
mov dword [esp + 0x98], eax
fstp dword [esp + 0xc8]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xd8], eax
mov eax, dword [0x4e51d0]
fstp dword [esp + 0xcc]
mov ecx, dword [eax]
push 2
push 5
push eax
mov eax, dword [ecx + 0x14c]
call eax
mov eax, dword [esp + 0x8e8]
cmp byte [eax + 2], 0
je 0x415198
cmp dword [eax + 0x1c], 0
jne 0x415198
fild dword [eax + 0x18]
mov ecx, dword [ebp + 0x168]
imul ecx, dword [ebp + 0x58]
fmul dword [ebx + 8]
fiadd dword [ebp + 0xbc]
mov dword [esp + 0x14], ecx
mov eax, 0x40ff0000
mov ecx, 8
lea esi, [esp + 0x60]
fiadd dword [ebp + 8]
lea edi, [esp + 0x80]
push 0x20
fld dword [0x499a48]
fsub st(1), st(0)
fxch st(1)
fsub dword [ebx + 0x10]
mov dword [esp + 0x74], eax
fld1
mov dword [esp + 0x78], 0
fsub st(1), st(0)
fxch st(1)
fstp dword [esp + 0x64]
fild dword [esp + 0x18]
fiadd dword [ebp + 0xc0]
fiadd dword [ebp + 0xc]
fsubrp st(2)
fsub st(1), st(0)
fxch st(1)
fstp dword [esp + 0x68]
fstp dword [esp + 0x70]
fld dword [0x499ac0]
fstp dword [esp + 0x6c]
fldz
fst dword [esp + 0x7c]
fstp dword [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [esp + 0x64]
lea edi, [esp + 0xa4]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [esp + 0x64]
lea edi, [esp + 0xc4]
rep movsd dword es:[edi], dword [esi]
fld dword [ebx + 0xc]
fld dword [0x499a10]
fadd st(1), st(0)
fxch st(1)
fadd dword [esp + 0x68]
fst dword [esp + 0x88]
mov dword [esp + 0x94], eax
lea ecx, [esp + 0x64]
fld dword [ebx + 8]
push ecx
faddp st(2)
mov dword [esp + 0xb8], eax
fxch st(1)
mov dword [esp + 0xd8], eax
mov eax, dword [0x4e51d0]
fadd dword [esp + 0x68]
push 2
push 5
push eax
fst dword [esp + 0xb4]
fstp dword [esp + 0xd4]
fstp dword [esp + 0xd8]
mov edx, dword [eax]
mov edx, dword [edx + 0x14c]
call edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8d4
ret 8
fldz
mov eax, dword [ebp + 0x16c]
lea ecx, [eax + edx]
cmp ecx, dword [ebp + 0x54]
jge 0x415614
mov ebx, dword [ebp + 0x58]
fst dword [esp + 0x34]
mov esi, dword [esp + 0x8e8]
imul ebx, edx
fstp dword [esp + 0x38]
fld dword [0x499b18]
fstp dword [esp + 0x3c]
mov esi, dword [esi + 0x34]
add ebx, dword [ebp + 0xc]
lea eax, [ecx + ecx*8 + 0x5a0]
lea eax, [esi + eax*4]
xor edx, edx
cmp byte [ebp + 0x60], dl
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x48], 1
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 0x10000
mov dword [esp + 0x5c], edx
mov byte [esp + 0x54], dl
je 0x415291
mov edx, dword [ebp + 0x64]
add edx, eax
mov eax, dword [ebp + 0x68]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
mov edx, dword [ebp + 0x88]
add eax, ebx
cmp dword [ebp + 0x84], 0x10
fstp dword [esp + 0x2c]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov dword [esp + 0x58], edx
fstp dword [esp + 0x30]
jb 0x415250
mov eax, dword [ebp + 0x70]
jmp 0x415253
lea eax, [ebp + 0x70]
add ecx, 1
push ecx
push eax
lea eax, [esp + 0xe8]
push 0x3ff
push eax
call fcn.0045b8ba
add esp, 0x10
lea ecx, [esp + 0xe0]
push ecx
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x64]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.0040d520
mov eax, dword [esp + 0x54]
add esp, 0x3c
cmp byte [ebp + 0x8c], 0
je 0x415328
mov edx, dword [ebp + 0x90]
mov ecx, dword [ebp + 0xb4]
add edx, eax
mov eax, dword [ebp + 0x94]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
add eax, ebx
cmp dword [ebp + 0xb0], 0x10
mov dword [esp + 0x14], eax
fstp dword [esp + 0x2c]
mov dword [esp + 0x58], ecx
fild dword [esp + 0x14]
fstp dword [esp + 0x30]
jb 0x4152e1
mov eax, dword [ebp + 0x9c]
jmp 0x4152e7
lea eax, [ebp + 0x9c]
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx]
push ecx
push eax
lea edx, [esp + 0xe8]
push 0x3ff
push edx
call fcn.0045b8ba
add esp, 0x10
lea eax, [esp + 0xe0]
push eax
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x64]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.0040d520
mov eax, dword [esp + 0x54]
add esp, 0x3c
cmp byte [ebp + 0xb8], 0
je 0x4153e7
mov ecx, dword [ebp + 0xbc]
mov edx, dword [ebp + 0xc0]
add ecx, eax
mov eax, dword [ebp + 0xe0]
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
mov ecx, dword [ebp + 0x5c]
add edx, ebx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x1c]
fstp dword [esp + 0x2c]
fild dword [esp + 0x14]
push ecx
add edx, 0x14
mov dword [esp + 0x5c], eax
push edx
fstp dword [esp + 0x38]
lea eax, [esp + 0x4e8]
push eax
call fcn.00459d80
mov ecx, dword [ebp + 0x5c]
add esp, 0xc
cmp dword [ebp + 0xdc], 0x10
mov byte [esp + ecx + 0x4e0], 0
jb 0x41539f
mov eax, dword [ebp + 0xc8]
jmp 0x4153a5
lea eax, [ebp + 0xc8]
lea edx, [esp + 0x4e0]
push edx
push eax
lea eax, [esp + 0xe8]
push 0x3ff
push eax
call fcn.0045b8ba
add esp, 0x10
lea ecx, [esp + 0xe0]
push ecx
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x64]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.0040d520
mov eax, dword [esp + 0x54]
add esp, 0x3c
cmp byte [ebp + 0xe4], 0
je 0x4154a0
mov edx, dword [ebp + 0xe8]
mov ecx, dword [ebp + 0x10c]
add edx, eax
mov eax, dword [ebp + 0xec]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
add eax, ebx
mov dword [esp + 0x14], eax
mov eax, dword [edx + 4]
fstp dword [esp + 0x2c]
cmp eax, 0xffffffff
fild dword [esp + 0x14]
mov dword [esp + 0x58], ecx
fstp dword [esp + 0x30]
jne 0x41544e
push 0x497914
lea eax, [esp + 0xe4]
push 0x3ff
push eax
call fcn.0045b8ba
add esp, 0xc
jmp 0x41547c
cmp dword [ebp + 0x108], 0x10
jb 0x41545f
mov ecx, dword [ebp + 0xf4]
jmp 0x415465
lea ecx, [ebp + 0xf4]
push eax
push ecx
lea ecx, [esp + 0xe8]
push 0x3ff
push ecx
call fcn.0045b8ba
add esp, 0x10
lea edx, [esp + 0xe0]
push edx
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x64]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.0040d520
mov eax, dword [esp + 0x54]
add esp, 0x3c
cmp byte [ebp + 0x110], 0
je 0x415542
mov ecx, dword [ebp + 0x114]
mov edx, dword [ebp + 0x118]
add ecx, eax
mov eax, dword [ebp + 0x138]
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
add edx, ebx
cmp dword [ebp + 0x134], 0x10
mov dword [esp + 0x14], edx
fstp dword [esp + 0x2c]
mov dword [esp + 0x58], eax
fild dword [esp + 0x14]
fstp dword [esp + 0x30]
jb 0x4154f0
mov eax, dword [ebp + 0x120]
jmp 0x4154f6
lea eax, [ebp + 0x120]
push eax
call fcn.0045ad3a
mov ecx, dword [esp + 0x20]
add eax, dword [ecx + 8]
lea edx, [esp + 0xe4]
push eax
push 0x497918
push 0x3ff
push edx
call fcn.0045b8ba
add esp, 0x14
lea eax, [esp + 0xe0]
push eax
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x64]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.0040d520
mov eax, dword [esp + 0x54]
add esp, 0x3c
cmp byte [ebp + 0x13c], 0
je 0x4155f7
mov ecx, dword [ebp + 0x140]
mov edx, dword [ebp + 0x144]
add ecx, eax
mov eax, dword [ebp + 0x164]
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
add edx, ebx
mov dword [esp + 0x14], edx
fstp dword [esp + 0x2c]
mov dword [esp + 0x58], eax
fild dword [esp + 0x14]
mov eax, dword [ecx + 0x10]
cmp eax, 0xffffffff
fstp dword [esp + 0x30]
jne 0x4155a9
push 0x497910
lea edx, [esp + 0xe4]
push 0x3ff
push edx
call fcn.0045b8ba
add esp, 0xc
jmp 0x4155d7
cmp dword [ebp + 0x160], 0x10
jb 0x4155ba
mov ecx, dword [ebp + 0x14c]
jmp 0x4155c0
lea ecx, [ebp + 0x14c]
push eax
push ecx
lea eax, [esp + 0xe8]
push 0x3ff
push eax
call fcn.0045b8ba
add esp, 0x10
lea ecx, [esp + 0xe0]
push ecx
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x64]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.0040d520
add esp, 0x3c
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
add edx, 1
cmp edx, dword [ebp + 0x50]
mov dword [esp + 0x20], edx
jl 0x4151a5
jmp 0x414ee5
fstp st(0)
jmp 0x4155fb