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

Disassembly:
push 0xffffffffffffffff
push 0x100c2957
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10119a70]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
mov ebp, ecx
xor eax, eax
mov dword [esp + 0xbc], eax
mov ecx, dword [esp + 0x290]
mov dword [esp + 0x288], eax
call fcn.1003d760
fild dword [esp + 0x294]
fld qword [ebp + 0x28]
mov eax, dword [ebp + 0x38]
mov ebx, dword [ebp + 0x6c]
fmul st(1)
mov dword [esp + 0x34], eax
mov eax, ebx
cdq
fst qword [esp + 0x50]
sub eax, edx
fild dword [esp + 0x298]
sar eax, 1
fld qword [ebp + 0x30]
lea ecx, [eax + ebx]
mov dword [esp + 0x60], ecx
fmul st(1)
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x70]
mov dword [esp + 0xbc], 1
fst qword [esp + 0x40]
fld qword [ebp + 0x18]
fmulp st(4)
fxch st(3)
fst qword [esp + 0x38]
fld qword [ebp + 0x20]
fmulp st(2)
fxch st(1)
fst qword [esp + 0x80]
fld qword [0x100d0258]
fmul st(3), st(0)
fxch st(3)
fst qword [esp + 0xa4]
fld st(0)
fxch st(5)
fmulp st(4)
fxch st(3)
fst qword [esp + 0x9c]
fld st(0)
fxch st(5)
fadd st(3)
fld st(2)
faddp st(6)
fst qword [esp + 0x70]
fxch st(5)
fst qword [esp + 0x78]
fild dword [esp + 0x60]
fld st(0)
faddp st(7)
fxch st(1)
fadd qword [0x100cda58]
fxch st(6)
fstp qword [esp + 0x8c]
fxch st(5)
fstp qword [esp + 0x94]
cmp eax, 1
jne 0x1003e200
fstp st(4)
neg ecx
fstp st(2)
mov dword [esp + 0x60], ecx
fild dword [esp + 0x60]
faddp st(1)
fxch st(1)
faddp st(2)
fstp qword [esp + 0x8c]
fstp qword [esp + 0x94]
jmp 0x1003e281
cmp eax, 2
jne 0x1003e22d
fstp st(4)
neg ecx
fstp st(3)
mov dword [esp + 0x60], ecx
fild dword [esp + 0x60]
fxch st(2)
faddp st(1)
fxch st(2)
faddp st(1)
fxch st(1)
fstp qword [esp + 0x8c]
fstp qword [esp + 0x94]
jmp 0x1003e281
cmp eax, 3
jne 0x1003e254
fstp st(3)
fld qword [esp + 0x50]
faddp st(4)
fxch st(3)
faddp st(1)
fxch st(2)
faddp st(1)
fxch st(1)
fstp qword [esp + 0x8c]
fstp qword [esp + 0x94]
jmp 0x1003e281
fstp st(0)
cmp eax, 4
jne 0x1003e279
fld qword [esp + 0x40]
faddp st(4)
fxch st(2)
faddp st(1)
fxch st(1)
faddp st(2)
fstp qword [esp + 0x8c]
fstp qword [esp + 0x94]
jmp 0x1003e281
fstp st(1)
fstp st(0)
fstp st(1)
fstp st(0)
mov eax, dword [0x100cca90]
mov dword [esp + 0x14], eax
mov dword [esp + 0x288], 1
mov dword [esp + 0x18], eax
mov byte [esp + 0x288], 2
lea esi, [esp + 0xc0]
mov edi, 8
lea ecx, [ecx]
mov ecx, esi
call dword [0x100cc758]
add esi, 0x10
sub edi, 1
jns 0x1003e2b0
fld qword [esp + 0x80]
lea ecx, [esp + 0x1c]
fld qword [esp + 0x38]
push ecx
fst qword [esp + 0xc4]
mov esi, 1
fstp qword [esp + 0x20]
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 0
fst qword [esp + 0xcc]
mov dword [esp + 0x30], esi
fstp qword [esp + 0x28]
call fcn.1003d520
mov eax, dword [esp + 0xc4]
mov edx, dword [esp + 0xc0]
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xcc]
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], edx
mov byte [esp + 0x34], 0
mov dword [esp + 0x30], esi
call fcn.1003d520
fld qword [esp + 0xa4]
cmp byte [ebp + 0x52], 0
fadd qword [esp + 0x38]
fld qword [esp + 0x80]
fadd qword [0x100cda58]
fst qword [esp + 0x60]
fld st(0)
fxch st(2)
fst qword [esp + 0xd0]
fxch st(2)
fst qword [esp + 0xd8]
jne 0x1003e3e7
fstp st(1)
lea ecx, [esp + 0x1c]
fxch st(1)
push ecx
fstp qword [esp + 0x20]
mov esi, 7
lea ecx, [esp + 0x18]
fstp qword [esp + 0x28]
mov byte [esp + 0x34], 0
mov dword [esp + 0x30], esi
call fcn.1003d520
mov eax, dword [esp + 0xd4]
mov edx, dword [esp + 0xd0]
mov ecx, dword [esp + 0xd8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xdc]
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], edx
mov byte [esp + 0x34], 0
mov dword [esp + 0x30], esi
call fcn.1003d520
fld qword [esp + 0x60]
jmp 0x1003e3eb
fstp st(2)
fstp st(1)
fld qword [esp + 0x38]
lea ecx, [esp + 0x1c]
fadd qword [esp + 0x50]
push ecx
mov esi, 4
lea ecx, [esp + 0x18]
fst qword [esp + 0x64]
mov byte [esp + 0x34], 0
fst qword [esp + 0xe4]
mov dword [esp + 0x30], esi
fstp qword [esp + 0x20]
fst qword [esp + 0xec]
fstp qword [esp + 0x28]
call fcn.1003d520
mov eax, dword [esp + 0xe4]
mov edx, dword [esp + 0xe0]
mov ecx, dword [esp + 0xe8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xec]
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], edx
mov byte [esp + 0x34], 0
mov dword [esp + 0x30], esi
call fcn.1003d520
fld qword [esp + 0x9c]
cmp byte [ebp + 0x52], 0
fld qword [esp + 0x60]
fld qword [esp + 0x80]
faddp st(2)
fst qword [esp + 0xf0]
fxch st(1)
fst qword [esp + 0xf8]
jne 0x1003e501
fxch st(1)
lea ecx, [esp + 0x1c]
fstp qword [esp + 0x1c]
push ecx
mov esi, 6
lea ecx, [esp + 0x18]
fstp qword [esp + 0x28]
mov byte [esp + 0x34], 0
mov dword [esp + 0x30], esi
call fcn.1003d520
mov eax, dword [esp + 0xf4]
mov edx, dword [esp + 0xf0]
mov ecx, dword [esp + 0xf8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xfc]
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], edx
mov byte [esp + 0x34], 0
mov dword [esp + 0x30], esi
call fcn.1003d520
jmp 0x1003e505
fstp st(1)
fstp st(0)
fld qword [esp + 0x50]
call fcn.100bb8c0
fld qword [esp + 0x40]
mov dword [esp + 0x50], eax
call fcn.100bb8c0
mov dword [esp + 0x54], eax
fild dword [esp + 0x54]
fild dword [esp + 0x50]
lea ecx, [esp + 0x1c]
push ecx
mov esi, 5
fadd qword [esp + 0x3c]
lea ecx, [esp + 0x18]
fld qword [esp + 0x84]
mov byte [esp + 0x34], 0
faddp st(2)
mov dword [esp + 0x30], esi
fst qword [esp + 0x104]
fstp qword [esp + 0x20]
fst qword [esp + 0x10c]
fstp qword [esp + 0x28]
call fcn.1003d520
mov eax, dword [esp + 0x104]
mov edx, dword [esp + 0x100]
mov ecx, dword [esp + 0x108]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x10c]
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], edx
mov byte [esp + 0x34], 0
mov dword [esp + 0x30], esi
call fcn.1003d520
fld qword [esp + 0xa4]
cmp byte [ebp + 0x52], 0
fadd qword [esp + 0x38]
fld qword [esp + 0x80]
fadd qword [esp + 0x40]
fst qword [esp + 0x40]
fld st(0)
fxch st(2)
fst qword [esp + 0x110]
fxch st(2)
fst qword [esp + 0x118]
jne 0x1003e64e
fstp st(1)
lea ecx, [esp + 0x1c]
fxch st(1)
push ecx
fstp qword [esp + 0x20]
mov esi, 8
lea ecx, [esp + 0x18]
fstp qword [esp + 0x28]
mov byte [esp + 0x34], 0
mov dword [esp + 0x30], esi
call fcn.1003d520
mov eax, dword [esp + 0x114]
mov edx, dword [esp + 0x110]
mov ecx, dword [esp + 0x118]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x11c]
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], edx
mov byte [esp + 0x34], 0
mov dword [esp + 0x30], esi
call fcn.1003d520
fld qword [esp + 0x40]
jmp 0x1003e652
fstp st(2)
fstp st(1)
fld qword [esp + 0x38]
lea ecx, [esp + 0x1c]
fadd qword [0x100cda58]
push ecx
mov esi, 2
lea ecx, [esp + 0x18]
fst qword [esp + 0x44]
mov byte [esp + 0x34], 0
fst qword [esp + 0x124]
mov dword [esp + 0x30], esi
fstp qword [esp + 0x20]
fst qword [esp + 0x12c]
fstp qword [esp + 0x28]
call fcn.1003d520
mov eax, dword [esp + 0x124]
mov edx, dword [esp + 0x120]
mov ecx, dword [esp + 0x128]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x12c]
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], edx
mov byte [esp + 0x34], 0
mov dword [esp + 0x30], esi
call fcn.1003d520
fld qword [esp + 0x9c]
cmp byte [ebp + 0x52], 0
fld qword [esp + 0x40]
fld qword [esp + 0x80]
faddp st(2)
fst qword [esp + 0x130]
fxch st(1)
fst qword [esp + 0x138]
jne 0x1003e76a
fxch st(1)
lea ecx, [esp + 0x1c]
fstp qword [esp + 0x1c]
push ecx
mov esi, 3
lea ecx, [esp + 0x18]
fstp qword [esp + 0x28]
mov byte [esp + 0x34], 0
mov dword [esp + 0x30], esi
call fcn.1003d520
mov eax, dword [esp + 0x134]
mov edx, dword [esp + 0x130]
mov ecx, dword [esp + 0x138]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x13c]
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], edx
mov byte [esp + 0x34], 0
mov dword [esp + 0x30], esi
call fcn.1003d520
jmp 0x1003e76e
fstp st(1)
fstp st(0)
fld qword [esp + 0x9c]
lea ecx, [esp + 0x1c]
fld qword [esp + 0xa4]
push ecx
fadd qword [esp + 0x3c]
mov esi, 9
fld qword [esp + 0x84]
lea ecx, [esp + 0x1c]
faddp st(2)
mov byte [esp + 0x34], 0
mov dword [esp + 0x30], esi
fst qword [esp + 0x144]
fstp qword [esp + 0x20]
fst qword [esp + 0x14c]
fstp qword [esp + 0x28]
call fcn.1003d520
cmp byte [ebp + 0x51], 0
je 0x1003e835
mov eax, dword [esp + 0x144]
mov edx, dword [esp + 0x140]
mov ecx, dword [esp + 0x148]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x14c]
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], edx
mov byte [esp + 0x34], 0
mov dword [esp + 0x30], esi
call fcn.1003d520
fld qword [esp + 0x8c]
fstp qword [esp + 0x1c]
lea ecx, [esp + 0x1c]
fld qword [esp + 0x94]
push ecx
lea ecx, [esp + 0x1c]
fstp qword [esp + 0x28]
mov byte [esp + 0x34], 0
mov dword [esp + 0x30], 0xa
call fcn.1003d520
mov edx, dword [0x100cca90]
mov dword [esp + 0x88], edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
xor esi, esi
test ecx, ecx
jle 0x1003ebf0
mov edi, dword [0x100cc748]
lea esp, [esp]
fldz
lea ecx, [esp + 0x60]
fst qword [esp + 0x50]
fst qword [esp + 0x58]
fst qword [esp + 0x40]
fstp qword [esp + 0x48]
call dword [0x100cc74c]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 8]
add edx, esi
lea eax, [ecx + edx*4 + 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
dec eax
mov byte [esp + 0x288], 4
cmp eax, 8
ja case.default.0x1003e8a0
jmp dword [eax*4 + 0x1003f4f8]
fild dword [esp + 0x6c]
mov eax, dword [ecx]
fstp qword [esp + 0x260]
cmp eax, 1
je 0x1003e8ce
test eax, eax
je 0x1003e8ce
mov ecx, dword [ecx + 4]
push ecx
lea ecx, [esp + 0x18]
call fcn.1003d2d0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 8]
fld qword [esp + 0x260]
add edx, esi
lea eax, [ecx + edx*4 + 0x10]
mov eax, dword [eax]
fadd qword [eax]
fld qword [eax + 8]
mov eax, ebx
fldz
cdq
fadd st(1), st(0)
sub eax, edx
sar eax, 1
fxch st(2)
fst qword [esp + 0x50]
neg eax
fxch st(1)
mov dword [esp + 0x38], eax
fstp qword [esp + 0x58]
mov eax, dword [ecx]
fild dword [esp + 0x38]
fstp qword [esp + 0x250]
cmp eax, 1
je 0x1003e933
test eax, eax
je 0x1003e933
mov eax, dword [ecx + 4]
fstp st(1)
push eax
fstp st(0)
lea ecx, [esp + 0x18]
call fcn.1003d2d0
fldz
mov ecx, dword [esp + 0x14]
fld qword [esp + 0x50]
mov edx, dword [ecx + 8]
fld qword [esp + 0x250]
add edx, esi
lea eax, [ecx + edx*4 + 0x14]
mov eax, dword [eax]
fadd qword [eax]
fld qword [eax + 8]
fadd st(3)
fld st(1)
fstp qword [esp + 0x40]
fstp qword [esp + 0x48]
fsub st(1)
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x1003ebb8
fild dword [esp + 0x34]
sub esp, 0x18
mov eax, esp
sub esp, 0x10
fst qword [esp + 0x60]
fstp qword [esp + 0x20]
fld qword [esp + 0x98]
fstp qword [eax]
fld qword [esp + 0xa0]
fstp qword [eax + 8]
mov eax, esp
fstp qword [eax]
fld qword [esp + 0x80]
fstp qword [eax + 8]
lea eax, [esp + 0x78]
push eax
call fcn.1003af30
fld qword [esp + 0x64]
fstp qword [esp + 0x24]
add esp, 0x14
fld qword [esp + 0x88]
mov eax, esp
fstp qword [eax]
sub esp, 0x10
fld qword [esp + 0xa0]
lea ecx, [esp + 0x68]
fstp qword [eax + 8]
mov eax, esp
fld qword [esp + 0x68]
push ecx
fstp qword [eax]
fld qword [esp + 0x74]
fstp qword [eax + 8]
call fcn.1003af30
add esp, 0x2c
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x64]
call edi
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x64]
call edi
jmp case.default.0x1003e8a0
fild dword [esp + 0x6c]
mov eax, dword [ecx]
fstp qword [esp + 0x278]
cmp eax, 1
je 0x1003ea27
test eax, eax
je 0x1003ea27
mov ecx, dword [ecx + 4]
push ecx
lea ecx, [esp + 0x18]
call fcn.1003d2d0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 8]
add edx, esi
lea eax, [ecx + edx*4 + 0x10]
mov eax, dword [eax]
fld qword [eax]
fldz
fadd st(1), st(0)
fld qword [eax + 8]
fadd qword [esp + 0x278]
mov eax, ebx
cdq
fxch st(2)
sub eax, edx
fstp qword [esp + 0x50]
sar eax, 1
fxch st(1)
neg eax
fst qword [esp + 0x58]
mov dword [esp + 0x38], eax
mov eax, dword [ecx]
fild dword [esp + 0x38]
fstp qword [esp + 0x1d8]
cmp eax, 1
je 0x1003ea8c
test eax, eax
je 0x1003ea8c
mov eax, dword [ecx + 4]
fstp st(1)
push eax
fstp st(0)
lea ecx, [esp + 0x18]
call fcn.1003d2d0
fldz
mov ecx, dword [esp + 0x14]
fld qword [esp + 0x58]
mov edx, dword [ecx + 8]
add edx, esi
lea eax, [ecx + edx*4 + 0x14]
mov eax, dword [eax]
fld qword [eax]
fadd st(2)
fld qword [eax + 8]
fadd qword [esp + 0x1d8]
fld st(0)
fxch st(2)
fstp qword [esp + 0x40]
fxch st(1)
fstp qword [esp + 0x48]
fsub st(1)
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x1003ebb8
fild dword [esp + 0x34]
sub esp, 0x18
mov eax, esp
sub esp, 0x10
fst qword [esp + 0x60]
fstp qword [esp + 0x20]
fld qword [esp + 0x98]
fstp qword [eax]
fld qword [esp + 0xa0]
fstp qword [eax + 8]
mov eax, esp
fld qword [esp + 0x78]
fstp qword [eax]
jmp 0x1003e999
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
neg eax
mov dword [esp + 0x38], eax
mov eax, dword [ecx]
fild dword [esp + 0x38]
fstp qword [esp + 0x200]
cmp eax, 1
je 0x1003eb2c
test eax, eax
je 0x1003eb2c
mov ecx, dword [ecx + 4]
push ecx
lea ecx, [esp + 0x18]
call fcn.1003d2d0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 8]
add edx, esi
lea eax, [ecx + edx*4 + 0x10]
mov eax, dword [eax]
fld qword [eax]
fadd qword [esp + 0x200]
fld qword [eax + 8]
fldz
fadd st(1), st(0)
fxch st(2)
fst qword [esp + 0x50]
fxch st(1)
fstp qword [esp + 0x58]
fild dword [esp + 0x6c]
mov eax, dword [ecx]
fstp qword [esp + 0x240]
cmp eax, 1
je 0x1003eb84
test eax, eax
je 0x1003eb84
mov eax, dword [ecx + 4]
fstp st(1)
push eax
fstp st(0)
lea ecx, [esp + 0x18]
call fcn.1003d2d0
fldz
mov ecx, dword [esp + 0x14]
fld qword [esp + 0x50]
mov edx, dword [ecx + 8]
fld qword [esp + 0x240]
add edx, esi
lea eax, [ecx + edx*4 + 0x14]
mov eax, dword [eax]
fadd qword [eax]
fld qword [eax + 8]
fadd st(3)
fld st(1)
fstp qword [esp + 0x40]
fstp qword [esp + 0x48]
fsub st(1)
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x1003e967
fstp st(0)
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x8c]
call fcn.1003d690
lea ecx, [esp + 0x60]
mov byte [esp + 0x288], 3
call dword [0x100cc750]
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0xc]
sub edx, dword [eax + 8]
inc esi
cmp esi, edx
jl 0x1003e860
mov ecx, dword [0x100cca90]
mov dword [esp + 0x68], ecx
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0xc]
sub edx, dword [eax + 8]
xor esi, esi
mov byte [esp + 0x288], 5
test edx, edx
jle 0x1003ed2c
fldz
xor edi, edi
fst qword [esp + 0xac]
fstp qword [esp + 0xb4]
fild dword [esp + 0x34]
fstp qword [esp + 0x38]
fld qword [esp + 0xac]
mov byte [esp + 0x30], 0
fstp qword [esp + 0x1c]
mov dword [esp + 0x2c], edi
fld qword [esp + 0xb4]
fstp qword [esp + 0x24]
mov ecx, dword [eax]
cmp ecx, 1
je 0x1003ec6b
cmp ecx, edi
je 0x1003ec6b
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x1c]
call fcn.1003d2d0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
fld qword [esp + 0x38]
add ecx, esi
lea ecx, [eax + ecx*4 + 0x10]
sub esp, 0x18
fstp qword [esp + 0x10]
mov eax, esp
fld qword [esp + 0x88]
sub esp, 0x10
fstp qword [eax]
fld qword [esp + 0xa0]
fstp qword [eax + 8]
mov eax, dword [ecx]
mov edx, dword [eax]
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x44]
push ecx
call fcn.1003af30
mov eax, dword [esp + 0x44]
mov ecx, dword [eax]
add esp, 0x2c
cmp ecx, 1
je 0x1003ecde
cmp ecx, edi
je 0x1003ecde
mov edx, dword [eax + 4]
push edx
lea ecx, [esp + 0x1c]
call fcn.1003d2d0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
add ecx, esi
mov edx, dword [eax + ecx*4 + 0x10]
lea eax, [eax + ecx*4 + 0x10]
mov ecx, dword [edx + 0x10]
mov eax, dword [ebp + 0x68]
mov dword [esp + 0x2c], ecx
cmp ecx, eax
jne 0x1003ed02
mov byte [esp + 0x30], 1
cmp eax, edi
jne 0x1003ed07
mov byte [esp + 0x30], 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x6c]
call fcn.1003d520
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
inc esi
cmp esi, ecx
jl 0x1003ec30
mov ecx, dword [esp + 0x68]
mov edi, dword [esp + 0x290]
mov edx, dword [esp + 0x88]
mov ebx, dword [0x100cca9c]
cmp dword [edi + 4], edx
lea esi, [edi + 4]
je 0x1003f2b4
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x38]
call fcn.1003d0d0
lea ecx, [esp + 0x34]
cmp ecx, esi
je 0x1003f259
mov ecx, dword [esp + 0x34]
mov eax, dword [esi]
mov dword [esp + 0x34], eax
mov dword [esi], ecx
jmp 0x1003f25d
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
neg eax
mov dword [esp + 0x38], eax
mov eax, dword [ecx]
fild dword [esp + 0x38]
fstp qword [esp + 0x228]
cmp eax, 1
je 0x1003edae
test eax, eax
je 0x1003edae
mov ecx, dword [ecx + 4]
push ecx
lea ecx, [esp + 0x18]
call fcn.1003d2d0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 8]
add edx, esi
cmp byte [ebp + 0x52], 0
lea eax, [ecx + edx*4 + 0x10]
mov eax, dword [eax]
fld qword [eax]
fldz
fadd st(1), st(0)
fld qword [eax + 8]
fadd qword [esp + 0x228]
fxch st(2)
fstp qword [esp + 0x50]
fxch st(1)
fstp qword [esp + 0x58]
fild dword [esp + 0x6c]
mov eax, dword [ecx]
je 0x1003ee1f
fstp qword [esp + 0x1e8]
cmp eax, 1
je 0x1003ee06
test eax, eax
je 0x1003ee06
mov eax, dword [ecx + 4]
fstp st(0)
push eax
lea ecx, [esp + 0x18]
call fcn.1003d2d0
fldz
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 8]
lea eax, [ecx + edx*4 + 0x10]
mov eax, dword [eax]
fld qword [eax]
fadd st(1)
fld qword [eax + 8]
fadd qword [esp + 0x1e8]
jmp 0x1003ee5d
fstp qword [esp + 0x1f8]
cmp eax, 1
je 0x1003ee44
test eax, eax
je 0x1003ee44
mov eax, dword [ecx + 4]
fstp st(0)
push eax
lea ecx, [esp + 0x18]
call fcn.1003d2d0
fldz
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 8]
add edx, esi
lea eax, [ecx + edx*4 + 0x14]
mov eax, dword [eax]
fld qword [eax]
fadd st(1)
fld qword [eax + 8]
fadd qword [esp + 0x1f8]
fxch st(1)
fstp qword [esp + 0x40]
fst qword [esp + 0x48]
fld qword [esp + 0x58]
fsub st(1), st(0)
fxch st(1)
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x1003ebb8
fild dword [esp + 0x34]
sub esp, 0x18
mov eax, esp
sub esp, 0x10
fst qword [esp + 0x60]
fstp qword [esp + 0x20]
fld qword [esp + 0x98]
fstp qword [eax]
fld qword [esp + 0xa0]
fstp qword [eax + 8]
mov eax, esp
fld qword [esp + 0x78]
fstp qword [eax]
jmp 0x1003e999
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
neg eax
mov dword [esp + 0x38], eax
mov eax, dword [ecx]
fild dword [esp + 0x38]
fstp qword [esp + 0x218]
cmp eax, 1
je 0x1003eee6
test eax, eax
je 0x1003eee6
mov ecx, dword [ecx + 4]
push ecx
lea ecx, [esp + 0x18]
call fcn.1003d2d0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 8]
add edx, esi
lea eax, [ecx + edx*4 + 0x10]
mov eax, dword [eax]
fld qword [eax]
fldz
fadd st(1), st(0)
fld qword [eax + 8]
fadd qword [esp + 0x218]
fxch st(2)
fstp qword [esp + 0x50]
fxch st(1)
fst qword [esp + 0x58]
fild dword [esp + 0x6c]
mov eax, dword [ecx]
fstp qword [esp + 0x238]
cmp eax, 1
je 0x1003ef3e
test eax, eax
je 0x1003ef3e
mov eax, dword [ecx + 4]
fstp st(1)
push eax
fstp st(0)
lea ecx, [esp + 0x18]
call fcn.1003d2d0
fldz
mov ecx, dword [esp + 0x14]
fld qword [esp + 0x58]
mov edx, dword [ecx + 8]
lea eax, [ecx + edx*4 + 0x10]
mov eax, dword [eax]
fld qword [eax]
fadd st(2)
fld qword [eax + 8]
fadd qword [esp + 0x238]
fld st(0)
fxch st(2)
fstp qword [esp + 0x40]
fxch st(1)
fstp qword [esp + 0x48]
fsub st(1)
jmp 0x1003ee6f
fild dword [esp + 0x6c]
mov eax, dword [ecx]
fst qword [esp + 0x80]
fstp qword [esp + 0x1c]
cmp eax, 1
je 0x1003ef95
test eax, eax
je 0x1003ef95
mov ecx, dword [ecx + 4]
push ecx
lea ecx, [esp + 0x18]
call fcn.1003d2d0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 8]
fld qword [esp + 0x1c]
add edx, esi
lea eax, [ecx + edx*4 + 0x10]
mov eax, dword [eax]
fadd qword [eax]
fld qword [eax + 8]
mov eax, ebx
fldz
cdq
fadd st(1), st(0)
sub eax, edx
sar eax, 1
fxch st(2)
fst qword [esp + 0x50]
neg eax
fxch st(1)
mov dword [esp + 0x38], eax
fst qword [esp + 0x58]
mov eax, dword [ebp + 0x70]
fild dword [esp + 0x38]
fld st(0)
fld qword [esp + 0x8c]
fadd st(1), st(0)
fxch st(1)
fstp qword [esp + 0x9c]
fld qword [esp + 0x94]
fld st(0)
fadd st(6)
fst qword [esp + 0xa4]
fld qword [esp + 0x9c]
fstp qword [esp + 0xac]
fld qword [esp + 0xa4]
fstp qword [esp + 0xb4]
fld qword [esp + 0xac]
fstp qword [esp + 0x40]
fld qword [esp + 0xb4]
fstp qword [esp + 0x48]
cmp eax, 1
jne 0x1003f0a1
cmp byte [ebp + 0x52], 0
fstp st(5)
fstp st(3)
fstp st(2)
je 0x1003f051
fstp st(0)
lea eax, [esp + 0x1c0]
fxch st(2)
fst qword [esp + 0x1c0]
fstp qword [esp + 0x1c8]
jmp 0x1003f068
fstp qword [esp + 0x150]
lea eax, [esp + 0x150]
fxch st(2)
fstp qword [esp + 0x158]
fld qword [eax + 8]
fld qword [eax]
fadd qword [esp + 0x130]
fld qword [esp + 0x138]
faddp st(2)
fst qword [esp + 0x50]
fxch st(1)
fst qword [esp + 0x58]
fld qword [esp + 0x80]
faddp st(4)
fxch st(3)
fstp qword [esp + 0x40]
fxch st(1)
fstp qword [esp + 0x48]
jmp 0x1003f124
cmp eax, 2
jne 0x1003f154
cmp byte [ebp + 0x52], 0
fstp st(5)
fstp st(3)
fstp st(3)
je 0x1003f0d1
fstp st(0)
lea eax, [esp + 0x170]
fxch st(2)
fst qword [esp + 0x170]
fst qword [esp + 0x178]
jmp 0x1003f0e8
fstp qword [esp + 0x1a0]
lea eax, [esp + 0x1a0]
fxch st(2)
fst qword [esp + 0x1a8]
fld qword [eax + 8]
fld qword [eax]
fadd qword [esp + 0xd0]
fld qword [esp + 0xd8]
faddp st(2)
fst qword [esp + 0x50]
fxch st(1)
fst qword [esp + 0x58]
fld qword [esp + 0x80]
fxch st(4)
faddp st(3)
fxch st(3)
faddp st(4)
fxch st(1)
fstp qword [esp + 0x40]
fxch st(2)
fstp qword [esp + 0x48]
fxch st(1)
fild dword [esp + 0x34]
sub esp, 0x18
mov eax, esp
sub esp, 0x10
fst qword [esp + 0x60]
fstp qword [esp + 0x20]
fld qword [esp + 0x98]
fstp qword [eax]
fld qword [esp + 0xa0]
fstp qword [eax + 8]
mov eax, esp
fstp qword [eax]
jmp 0x1003e999
cmp eax, 3
jne 0x1003f1d0
cmp byte [ebp + 0x52], 0
fstp st(5)
fstp st(3)
fstp st(2)
je 0x1003f17e
fxch st(3)
lea eax, [esp + 0x1b0]
fst qword [esp + 0x1b0]
fstp qword [esp + 0x1b8]
jmp 0x1003f19c
fld qword [esp + 0x80]
lea eax, [esp + 0x190]
fstp qword [esp + 0x190]
fxch st(3)
fstp qword [esp + 0x198]
fld qword [eax + 8]
fld qword [eax]
fadd qword [esp + 0xf0]
fld qword [esp + 0xf8]
faddp st(2)
fst qword [esp + 0x50]
fxch st(1)
fst qword [esp + 0x58]
fxch st(4)
faddp st(2)
fxch st(1)
fstp qword [esp + 0x40]
fxch st(1)
fstp qword [esp + 0x48]
jmp 0x1003f124
fstp st(0)
cmp eax, 4
jne 0x1003f24c
cmp byte [ebp + 0x52], 0
fstp st(4)
fstp st(2)
je 0x1003f1fa
fxch st(3)
lea eax, [esp + 0x160]
fst qword [esp + 0x160]
fst qword [esp + 0x168]
jmp 0x1003f218
fld qword [esp + 0x80]
lea eax, [esp + 0x180]
fstp qword [esp + 0x180]
fxch st(3)
fst qword [esp + 0x188]
fld qword [eax]
fld qword [eax + 8]
fld qword [esp + 0x110]
faddp st(2)
fadd qword [esp + 0x118]
fxch st(1)
fst qword [esp + 0x50]
fxch st(1)
fst qword [esp + 0x58]
fxch st(3)
faddp st(2)
fxch st(4)
faddp st(3)
fstp qword [esp + 0x40]
fxch st(1)
jmp 0x1003f11e
fstp st(5)
fstp st(0)
fstp st(0)
fstp st(2)
jmp 0x1003f124
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
test ecx, ecx
je 0x1003f27a
cmp ecx, 0xffffffff
je 0x1003f2ac
or edx, 0xffffffff
lock xadd dword [eax], edx
setne al
test al, al
jne 0x1003f2ac
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
lea esi, [eax + ecx*4 + 0x10]
lea edi, [eax + edx*4 + 0x10]
mov ebp, eax
cmp edi, esi
je 0x1003f29f
mov edi, edi
sub esi, 4
mov ecx, esi
call dword [0x100cc750]
cmp esi, edi
jne 0x1003f290
push ebp
call ebx
mov edi, dword [esp + 0x294]
add esp, 4
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x18]
cmp dword [edi], ecx
je 0x1003f341
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x38]
call fcn.1003ced0
lea ecx, [esp + 0x34]
cmp ecx, edi
je 0x1003f2e0
mov ecx, dword [esp + 0x34]
mov eax, dword [edi]
mov dword [esp + 0x34], eax
mov dword [edi], ecx
jmp 0x1003f2e4
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
test ecx, ecx
je 0x1003f301
cmp ecx, 0xffffffff
je 0x1003f339
or edx, 0xffffffff
lock xadd dword [eax], edx
setne al
test al, al
jne 0x1003f339
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
lea esi, [eax + ecx*4 + 0x10]
lea edi, [eax + edx*4 + 0x10]
mov ebp, eax
cmp edi, esi
je 0x1003f32c
mov eax, dword [esi - 4]
sub esi, 4
test eax, eax
je 0x1003f328
push eax
call fcn.100bb9a4
add esp, 4
cmp esi, edi
jne 0x1003f315
push ebp
call ebx
mov edi, dword [esp + 0x294]
add esp, 4
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x18]
mov edx, dword [ecx]
mov byte [esp + 0x288], 3
test edx, edx
je 0x1003f366
cmp edx, 0xffffffff
je 0x1003f3a8
or eax, 0xffffffff
lock xadd dword [ecx], eax
setne al
test al, al
jne 0x1003f3a4
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + 0xc]
mov eax, dword [ecx + 8]
lea esi, [ecx + edx*4 + 0x10]
lea edi, [ecx + eax*4 + 0x10]
mov ebp, ecx
cmp edi, esi
je 0x1003f397
lea ebx, [ebx]
mov eax, dword [esi - 4]
sub esi, 4
test eax, eax
je 0x1003f393
push eax
call fcn.100bb9a4
add esp, 4
cmp esi, edi
jne 0x1003f380
push ebp
call ebx
mov edi, dword [esp + 0x294]
add esp, 4
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x88]
mov ecx, dword [ebp]
mov byte [esp + 0x288], 2
test ecx, ecx
je 0x1003f3d9
cmp ecx, 0xffffffff
je 0x1003f410
or ecx, 0xffffffff
lock xadd dword [ebp], ecx
setne al
test al, al
jne 0x1003f40c
mov ebp, dword [esp + 0x88]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea esi, [ebp + edx*4 + 0x10]
lea edi, [ebp + eax*4 + 0x10]
cmp edi, esi
je 0x1003f3ff
jmp 0x1003f3f0
sub esi, 4
mov ecx, esi
call dword [0x100cc750]
cmp esi, edi
jne 0x1003f3f0
push ebp
call ebx
mov edi, dword [esp + 0x294]
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov byte [esp + 0x288], 1
test ecx, ecx
je 0x1003f435
cmp ecx, 0xffffffff
je 0x1003f474
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x1003f474
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
lea esi, [eax + edx*4 + 0x10]
lea edi, [eax + ecx*4 + 0x10]
mov ebp, eax
cmp edi, esi
je 0x1003f467
lea esp, [esp]
mov eax, dword [esi - 4]
sub esi, 4
test eax, eax
je 0x1003f463
push eax
call fcn.100bb9a4
add esp, 4
cmp esi, edi
jne 0x1003f450
push ebp
call ebx
mov edi, dword [esp + 0x294]
add esp, 4
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov byte [esp + 0x288], 0
test eax, eax
je 0x1003f499
cmp eax, 0xffffffff
je 0x1003f4d7
or edx, 0xffffffff
lock xadd dword [ecx], edx
setne al
test al, al
jne 0x1003f4d7
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
lea esi, [edi + eax*4 + 0x10]
mov ebp, edi
lea edi, [edi + ecx*4 + 0x10]
cmp edi, esi
je 0x1003f4c8
mov eax, dword [esi - 4]
sub esi, 4
test eax, eax
je 0x1003f4c4
push eax
call fcn.100bb9a4
add esp, 4
cmp esi, edi
jne 0x1003f4b1
push ebp
call ebx
mov eax, dword [esp + 0x294]
add esp, 4
jmp 0x1003f4d9
mov eax, edi
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x278
ret 0xc