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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
push ebx
sub esp, 0x13c
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x14], 0
je 0x41e8f7
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
cmp edx, 1
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x74], eax
jne 0x41dde2
mov edi, esi
jmp 0x41ddf6
cmp edx, 2
je 0x41ddf6
xor eax, eax
add esp, 0x13c
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
cmp dword [ebp + 0x14], 0xa
lea edx, [ebx + 0x28]
jae 0x41de2e
mov eax, dword [ebp + 0x14]
lea ecx, [eax*4]
mov dword [esp + 8], ecx
push ecx
push esi
push edx
call fcn.0040c050
push dword [esp + 0x14]
push edi
lea eax, [ebx + 0x4bdc]
push eax
call fcn.0040c050
add esp, 0x18
jmp 0x41dea1
mov eax, 0x28
mov ecx, dword [esi + eax - 4]
mov dword [edx + eax - 4], ecx
mov ecx, dword [esi + eax - 8]
mov dword [edx + eax - 8], ecx
mov ecx, dword [esi + eax - 0xc]
mov dword [edx + eax - 0xc], ecx
mov ecx, dword [esi + eax - 0x10]
mov dword [edx + eax - 0x10], ecx
mov ecx, dword [esi + eax - 0x14]
mov dword [edx + eax - 0x14], ecx
sub eax, 0x14
jne 0x41de33
mov eax, 0x28
mov edx, dword [edi + eax - 4]
mov dword [ebx + eax + 0x4bd8], edx
mov ecx, dword [edi + eax - 8]
mov dword [ebx + eax + 0x4bd4], ecx
mov edx, dword [edi + eax - 0xc]
mov dword [ebx + eax + 0x4bd0], edx
mov ecx, dword [edi + eax - 0x10]
mov dword [ebx + eax + 0x4bcc], ecx
mov edx, dword [edi + eax - 0x14]
mov dword [ebx + eax + 0x4bc8], edx
sub eax, 0x14
jne 0x41de65
cmp dword [ebp + 0x14], 0
jle 0x41e7fd
fld qword [0x46ae10]
fstp st(0)
fldz
mov eax, dword [ebx + 0x976c]
lea ecx, [ebx + 0x2604]
mov dword [esp + 0x28], ecx
lea ecx, [ebx + 0x71b8]
mov dword [esp + 0x24], ecx
lea ecx, [ebx + 0x54]
mov dword [esp + 0x20], ecx
lea ecx, [ebx + 0x4c08]
mov edx, dword [ebx + 0x9768]
mov esi, eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], edi
fstp dword [esp + 0x2c]
fld qword [0x46ae18]
fstp st(0)
fld qword [0x46ae20]
fstp st(0)
fld qword [0x46ae28]
fstp st(0)
sub edx, esi
mov ecx, dword [esp + 0x74]
cmp edx, ecx
jl 0x41df1c
mov edx, ecx
cmp dword [esp + 0x78], 0xa
jge 0x41df4b
mov ecx, dword [ebx + 0x50]
mov eax, dword [esp + 0x78]
lea edi, [ecx + eax*4]
mov dword [esp + 0x70], edi
mov ecx, dword [ebx + 0x4c04]
lea edi, [ecx + eax*4]
neg eax
add eax, 0xa
cmp eax, edx
mov dword [esp + 0x6c], edi
jge 0x41df64
mov edx, eax
jmp 0x41df64
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x78]
lea edi, [ecx + eax*4]
mov dword [esp + 0x70], edi
mov ecx, dword [esp + 0x30]
lea edi, [ecx + eax*4]
mov dword [esp + 0x6c], edi
mov ecx, dword [ebx + 0x2600]
lea eax, [esi*4]
lea edi, [ecx + esi*4]
mov ecx, dword [ebx + 0x9780]
mov dword [esp + 0x88], edi
imul edi, ecx, 0x54
mov dword [esp + 0xa0], edi
lea edi, [edi + 0x46aa40]
mov dword [esp + 0xa8], edi
lea edi, [edx - 1]
mov dword [esp + 0x80], edi
test edx, edx
mov dword [esp + 0x9c], edi
mov dword [esp + 0x84], edi
je 0x41e1dd
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x88]
mov esi, dword [esp + 0x70]
fld dword [eax]
fstp dword [esp + 0xc4]
fld dword [eax + 8]
fstp dword [esp + 0xac]
fld dword [eax + 0x10]
fstp dword [esp + 0xc0]
fld dword [eax + 0x18]
fstp dword [esp + 0xc8]
fld dword [eax + 0x20]
fstp dword [esp + 0xcc]
fld dword [eax + 0x28]
fstp dword [esp + 0xd0]
fld dword [eax + 0x30]
fstp dword [esp + 0x134]
fld dword [eax + 0x38]
fstp dword [esp + 0xd4]
fld dword [eax + 0x40]
fstp dword [esp + 0x12c]
fld dword [eax + 0x48]
fstp dword [esp + 0x124]
fld dword [eax + 0x50]
fstp dword [esp + 0x11c]
fld dword [eax + 4]
fstp dword [esp + 0x114]
fld dword [eax + 0xc]
fstp dword [esp + 0x10c]
fld dword [eax + 0x14]
fstp dword [esp + 0x100]
fld dword [eax + 0x1c]
fstp dword [esp + 0xf8]
fld dword [eax + 0x24]
fstp dword [esp + 0x64]
fld dword [eax + 0x2c]
fstp dword [esp + 0x5c]
fld dword [eax + 0x34]
fstp dword [esp + 0x54]
fld dword [eax + 0x3c]
fstp dword [esp + 0x4c]
fld dword [eax + 0x44]
fstp dword [esp + 0x44]
fld dword [eax + 0x4c]
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
fld dword [esp + 0x44]
fld dword [esp + 0x4c]
fld dword [esp + 0x54]
fld dword [esp + 0x5c]
fld dword [esp + 0x64]
mov eax, dword [esp + 0x9c]
jmp 0x41e0ad
fstp dword [ecx - 4]
fld dword [esi]
dec eax
fld dword [esi - 4]
fxch st(1)
fmul dword [esp + 0xc4]
fxch st(1)
fmul dword [esp + 0xac]
fxch st(1)
fadd qword [0x46ae28]
faddp st(1)
fld dword [esi - 8]
fmul dword [esp + 0xc0]
faddp st(1)
fld dword [esi - 0xc]
fmul dword [esp + 0xc8]
faddp st(1)
fld dword [esi - 0x10]
fmul dword [esp + 0xcc]
faddp st(1)
fld dword [esi - 0x14]
fmul dword [esp + 0xd0]
faddp st(1)
fld dword [esi - 0x18]
fmul dword [esp + 0x134]
faddp st(1)
fld dword [esi - 0x1c]
fmul dword [esp + 0xd4]
faddp st(1)
fld dword [esi - 0x20]
fmul dword [esp + 0x12c]
faddp st(1)
fld dword [esi - 0x24]
fmul dword [esp + 0x124]
faddp st(1)
fld dword [esi - 0x28]
fmul dword [esp + 0x11c]
add esi, 4
faddp st(1)
fld dword [ecx - 4]
fmul dword [esp + 0x114]
fsubp st(1)
fld dword [ecx - 8]
fmul dword [esp + 0x10c]
fsubp st(1)
fld dword [ecx - 0xc]
fmul dword [esp + 0x100]
fsubp st(1)
fld dword [ecx - 0x10]
fmul dword [esp + 0xf8]
fsubp st(1)
fld dword [ecx - 0x14]
fmul st(2)
fsubp st(1)
fld dword [ecx - 0x18]
fmul st(3)
fsubp st(1)
fld dword [ecx - 0x1c]
fmul st(4)
fsubp st(1)
fld dword [ecx - 0x20]
fmul st(5)
fsubp st(1)
fld dword [ecx - 0x24]
fmul st(6)
fsubp st(1)
fld dword [ecx - 0x28]
fmul st(7)
fsubp st(1)
add ecx, 4
cmp eax, 0xffffffff
jne 0x41e0aa
fstp dword [ecx - 4]
fstp st(5)
fstp st(3)
fstp st(1)
fstp st(0)
fstp st(0)
fstp st(0)
mov ecx, dword [ebx + 0x9780]
imul edi, ecx, 0x54
mov esi, dword [ebx + 0x976c]
mov dword [esp + 0xa0], edi
lea edi, [edi + 0x46aa40]
mov dword [esp + 0xa8], edi
lea eax, [esi*4]
mov edi, eax
add edi, dword [ebx + 0x71b4]
mov dword [esp + 0x7c], edi
test edx, edx
mov edi, dword [esp + 0x84]
je 0x41e409
mov ecx, dword [esp + 0xa8]
mov eax, dword [esp + 0xa0]
mov esi, dword [esp + 0x6c]
fld dword [ecx + 8]
fstp dword [esp + 0x108]
fld dword [eax + 0x46aa40]
fstp dword [esp + 0x104]
fld dword [ecx + 0x10]
fstp dword [esp + 0xd8]
fld dword [ecx + 0x18]
fstp dword [esp + 0xdc]
fld dword [ecx + 0x20]
fstp dword [esp + 0xe0]
fld dword [ecx + 0x28]
fstp dword [esp + 0x110]
fld dword [ecx + 0x30]
fstp dword [esp + 0x118]
fld dword [ecx + 0x38]
fstp dword [esp + 0xe4]
fld dword [ecx + 0x40]
fstp dword [esp + 0x120]
fld dword [ecx + 0x48]
fstp dword [esp + 0x130]
fld dword [ecx + 0x50]
fstp dword [esp + 0x128]
fld dword [ecx + 4]
fstp dword [esp + 0xe8]
fld dword [ecx + 0xc]
fstp dword [esp + 0xec]
fld dword [ecx + 0x14]
fstp dword [esp + 0xf0]
fld dword [ecx + 0x1c]
fstp dword [esp + 0xfc]
fld dword [ecx + 0x24]
fstp dword [esp + 0x68]
fld dword [ecx + 0x2c]
fstp dword [esp + 0x60]
fld dword [ecx + 0x34]
fstp dword [esp + 0x58]
fld dword [ecx + 0x3c]
fstp dword [esp + 0x50]
fld dword [ecx + 0x44]
fstp dword [esp + 0x48]
fld dword [ecx + 0x4c]
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fld dword [esp + 0x48]
fld dword [esp + 0x50]
fld dword [esp + 0x58]
fld dword [esp + 0x60]
fld dword [esp + 0x68]
mov eax, edi
mov ecx, dword [esp + 0x7c]
jmp 0x41e2f0
fstp dword [ecx - 4]
fld dword [esi]
dec eax
fld dword [esi - 4]
fxch st(1)
fmul dword [esp + 0x104]
fxch st(1)
fmul dword [esp + 0x108]
fxch st(1)
fadd qword [0x46ae28]
faddp st(1)
fld dword [esi - 8]
fmul dword [esp + 0xd8]
faddp st(1)
fld dword [esi - 0xc]
fmul dword [esp + 0xdc]
faddp st(1)
fld dword [esi - 0x10]
fmul dword [esp + 0xe0]
faddp st(1)
fld dword [esi - 0x14]
fmul dword [esp + 0x110]
faddp st(1)
fld dword [esi - 0x18]
fmul dword [esp + 0x118]
faddp st(1)
fld dword [esi - 0x1c]
fmul dword [esp + 0xe4]
faddp st(1)
fld dword [esi - 0x20]
fmul dword [esp + 0x120]
faddp st(1)
fld dword [esi - 0x24]
fmul dword [esp + 0x130]
faddp st(1)
fld dword [esi - 0x28]
fmul dword [esp + 0x128]
add esi, 4
faddp st(1)
fld dword [ecx - 4]
fmul dword [esp + 0xe8]
fsubp st(1)
fld dword [ecx - 8]
fmul dword [esp + 0xec]
fsubp st(1)
fld dword [ecx - 0xc]
fmul dword [esp + 0xf0]
fsubp st(1)
fld dword [ecx - 0x10]
fmul dword [esp + 0xfc]
fsubp st(1)
fld dword [ecx - 0x14]
fmul st(2)
fsubp st(1)
fld dword [ecx - 0x18]
fmul st(3)
fsubp st(1)
fld dword [ecx - 0x1c]
fmul st(4)
fsubp st(1)
fld dword [ecx - 0x20]
fmul st(5)
fsubp st(1)
fld dword [ecx - 0x24]
fmul st(6)
fsubp st(1)
fld dword [ecx - 0x28]
fmul st(7)
fsubp st(1)
add ecx, 4
cmp eax, 0xffffffff
jne 0x41e2ed
fstp dword [ecx - 4]
fstp st(5)
fstp st(3)
fstp st(1)
fstp st(0)
fstp st(0)
fstp st(0)
mov esi, dword [ebx + 0x976c]
mov ecx, dword [ebx + 0x9780]
lea eax, [esi*4]
mov edi, dword [ebx + 0x2600]
add edi, eax
mov dword [esp + 0x8c], edi
mov edi, dword [ebx + 0x4bb0]
add edi, eax
mov dword [esp + 0x94], edi
lea edi, [ecx + ecx*4]
test edx, edx
lea ecx, [edi*4]
mov dword [esp + 0xa4], ecx
lea ecx, [edi*4 + 0x46ad40]
je 0x41e4d3
fld dword [ecx]
fld dword [ecx + 8]
fld dword [ecx + 0x10]
fld dword [ecx + 4]
fld dword [ecx + 0xc]
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x94]
mov esi, dword [esp + 0x8c]
jmp 0x41e46f
fstp dword [ecx - 4]
fld dword [esi]
dec eax
fmul st(5)
fld dword [esi - 4]
fmul st(5)
faddp st(1)
fld dword [esi - 8]
fmul st(4)
add esi, 4
faddp st(1)
fld dword [ecx - 4]
fmul st(3)
fsubp st(1)
fld dword [ecx - 8]
fmul st(2)
fsubp st(1)
add ecx, 4
cmp eax, 0xffffffff
jne 0x41e46c
fstp dword [ecx - 4]
fstp st(0)
fstp st(1)
fstp st(1)
fstp st(1)
fstp st(0)
mov ecx, dword [ebx + 0x9780]
mov esi, dword [ebx + 0x976c]
lea ecx, [ecx + ecx*4]
lea edi, [ecx*4]
mov dword [esp + 0xa4], edi
lea eax, [esi*4]
lea ecx, [ecx*4 + 0x46ad40]
mov edi, dword [ebx + 0x71b4]
add edi, eax
mov dword [esp + 0x98], edi
mov edi, dword [ebx + 0x9764]
add edi, eax
test edx, edx
je 0x41e56b
fld dword [ecx + 8]
fld dword [ecx + 0x10]
fld dword [ecx + 4]
fld dword [ecx + 0xc]
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x98]
mov esi, dword [esp + 0x80]
fld dword [eax + 0x46ad40]
mov eax, edi
jmp 0x41e51c
fstp dword [eax - 4]
fld dword [ecx]
dec esi
fmul st(1)
fld dword [ecx - 4]
fmul st(6)
faddp st(1)
fld dword [ecx - 8]
fmul st(5)
add ecx, 4
faddp st(1)
fld dword [eax - 4]
fmul st(4)
fsubp st(1)
fld dword [eax - 8]
fmul st(3)
fsubp st(1)
add eax, 4
cmp esi, 0xffffffff
jne 0x41e519
fstp dword [eax - 4]
fstp st(1)
fstp st(2)
fstp st(2)
fstp st(0)
fstp st(0)
mov esi, dword [ebx + 0x976c]
mov ecx, dword [ebx + 0x9764]
lea eax, [esi*4]
lea edi, [ecx + esi*4]
mov ecx, edx
add eax, dword [ebx + 0x4bb0]
mov dword [esp + 0x90], eax
and ecx, 0x80000007
jge 0x41e589
sub ecx, 1
or ecx, 0xfffffff8
inc ecx
test ecx, ecx
je 0x41e5f5
fld qword [ebx + 0x9770]
xor eax, eax
fld qword [ebx + 0x9778]
mov dword [esp + 0xf4], ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edx
mov edx, eax
mov ecx, dword [esp + 0x90]
mov esi, edi
fld dword [ecx + edx*4]
lea eax, [ecx + edx*4]
fmul st(0)
lea edi, [esi + edx*4]
add eax, 4
add edi, 4
faddp st(2)
fxch st(1)
fst qword [ebx + 0x9770]
fld dword [esi + edx*4]
inc edx
fmul st(0)
cmp edx, dword [esp + 0xf4]
faddp st(2)
fxch st(1)
fst qword [ebx + 0x9778]
jb 0x41e5b5
fstp st(0)
fstp st(0)
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov ecx, edx
sar ecx, 2
shr ecx, 0x1d
add ecx, edx
sar ecx, 3
dec ecx
cmp ecx, 0xffffffff
je 0x41e6c8
fld qword [ebx + 0x9770]
fstp qword [esp + 0xb8]
fld qword [ebx + 0x9778]
fstp qword [esp + 0xb0]
fld dword [eax]
dec ecx
fmul st(0)
fld dword [eax + 4]
fmul st(0)
fld dword [eax + 8]
fmul st(0)
faddp st(1)
fld dword [eax + 0xc]
fmul st(0)
faddp st(1)
fld dword [eax + 0x10]
fmul st(0)
faddp st(1)
fld dword [eax + 0x14]
fmul st(0)
faddp st(1)
fld dword [eax + 0x18]
fmul st(0)
faddp st(1)
fld dword [eax + 0x1c]
fmul st(0)
add eax, 0x20
faddp st(1)
fadd qword [esp + 0xb8]
faddp st(1)
fst qword [ebx + 0x9770]
fstp qword [esp + 0xb8]
fld dword [edi]
fmul st(0)
fld dword [edi + 4]
fmul st(0)
fld dword [edi + 8]
fmul st(0)
faddp st(1)
fld dword [edi + 0xc]
fmul st(0)
faddp st(1)
fld dword [edi + 0x10]
fmul st(0)
faddp st(1)
fld dword [edi + 0x14]
fmul st(0)
faddp st(1)
fld dword [edi + 0x18]
fmul st(0)
faddp st(1)
fld dword [edi + 0x1c]
fmul st(0)
add edi, 0x20
faddp st(1)
cmp ecx, 0xffffffff
fadd qword [esp + 0xb0]
faddp st(1)
fst qword [esp + 0xb0]
fstp qword [ebx + 0x9778]
jne 0x41e626
add esi, edx
sub dword [esp + 0x74], edx
add dword [esp + 0x78], edx
mov edx, dword [ebx + 0x9768]
cmp esi, edx
mov dword [ebx + 0x976c], esi
jne 0x41e7e3
fld qword [ebx + 0x9770]
mov dword [esp + 0x18], esi
fild dword [esp + 0x18]
fxch st(1)
fadd qword [ebx + 0x9778]
fdivrp st(1)
fmul qword [0x46ae20]
fadd qword [0x46ae18]
fstp qword [esp]
call fcn.0043dd30
fld dword [esp + 0x2c]
fxch st(1)
fmul qword [0x46ae10]
fxch st(1)
fcomp st(1)
fnstsw ax
sahf
jb 0x41e72d
fstp st(0)
xor edx, edx
jmp 0x41e75c
fnstcw word [esp + 8]
movzx eax, word [esp + 8]
or eax, 0xc00
mov dword [esp + 0x10], eax
fldcw word [esp + 0x10]
fistp qword [esp + 0x18]
fldcw word [esp + 8]
mov edx, dword [esp + 0x18]
cmp edx, 0x2ee0
jb 0x41e75c
mov edx, 0x2edf
fld dword [esp + 0x2c]
lea eax, [ebx + esi*4 + 0x2604]
push 0x28
fst qword [ebx + 0x9778]
inc dword [ebx + edx*4 + 0x9788]
fstp qword [ebx + 0x9770]
push eax
push dword [esp + 0x30]
call fcn.0044cd50
mov eax, dword [ebx + 0x976c]
push 0x28
lea edx, [ebx + eax*4 + 0x71b8]
push edx
push dword [esp + 0x38]
call fcn.0044cd50
mov eax, dword [ebx + 0x976c]
push 0x28
lea edx, [ebx + eax*4 + 0x54]
push edx
push dword [esp + 0x40]
call fcn.0044cd50
mov eax, dword [ebx + 0x976c]
push 0x28
lea edx, [ebx + eax*4 + 0x4c08]
push edx
push dword [esp + 0x40]
call fcn.0044cd50
add esp, 0x30
mov dword [ebx + 0x976c], 0
xor esi, esi
mov edx, dword [ebx + 0x9768]
cmp esi, edx
jg 0x41dde7
cmp dword [esp + 0x74], 0
jg 0x41df10
mov esi, dword [ebp + 0xc]
mov edi, dword [esp + 0x30]
cmp dword [ebp + 0x14], 0xa
jae 0x41e876
mov eax, dword [ebp + 0x14]
lea edx, [eax*4]
mov dword [esp + 0xc], edx
neg edx
lea eax, [ebx + eax*4]
add edx, 0x28
mov dword [esp + 8], edx
push edx
push eax
push ebx
mov dword [esp + 0x1c], eax
call fcn.0044cd50
mov eax, dword [esp + 0x1c]
lea edx, [ebx + 0x4bb4]
push dword [esp + 0x14]
add eax, 0x4bb4
push eax
push edx
call fcn.0044cd50
mov eax, dword [ebp + 0x14]
push dword [esp + 0x24]
push esi
lea edx, [eax*4]
sub ebx, edx
lea ecx, [ebx + 0x28]
push ecx
call fcn.0040c050
push dword [esp + 0x30]
push edi
add ebx, 0x4bdc
push ebx
call fcn.0040c050
add esp, 0x30
jmp 0x41e8f7
mov eax, dword [ebp + 0x14]
mov edx, 0x28
lea eax, [esi + eax*4 - 0x28]
mov ecx, dword [eax + edx - 4]
mov dword [ebx + edx - 4], ecx
mov esi, dword [eax + edx - 8]
mov dword [ebx + edx - 8], esi
mov ecx, dword [eax + edx - 0xc]
mov dword [ebx + edx - 0xc], ecx
mov esi, dword [eax + edx - 0x10]
mov dword [ebx + edx - 0x10], esi
mov ecx, dword [eax + edx - 0x14]
mov dword [ebx + edx - 0x14], ecx
sub edx, 0x14
jne 0x41e882
mov eax, dword [ebp + 0x14]
mov edx, 0x28
lea eax, [edi + eax*4 - 0x28]
mov ecx, dword [eax + edx - 4]
mov dword [ebx + edx + 0x4bb0], ecx
mov esi, dword [eax + edx - 8]
mov dword [ebx + edx + 0x4bac], esi
mov edi, dword [eax + edx - 0xc]
mov dword [ebx + edx + 0x4ba8], edi
mov ecx, dword [eax + edx - 0x10]
mov dword [ebx + edx + 0x4ba4], ecx
mov esi, dword [eax + edx - 0x14]
mov dword [ebx + edx + 0x4ba0], esi
sub edx, 0x14
jne 0x41e8bb
mov eax, 1
add esp, 0x13c
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret