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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
xor ecx, ecx
lea eax, [ebx + edi - 2]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x10], eax
lea eax, [edi - 2]
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], ecx
cdq
sub eax, edx
mov ecx, ebx
sar eax, 1
shl ecx, 4
mov dword [esp + 0x14], eax
mov edx, dword [ecx + esi - 0x10]
lea eax, [ecx + esi - 0x10]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x5c], edx
mov eax, dword [eax + 4]
mov edx, dword [ecx + esi - 8]
mov dword [esp + 0x60], eax
lea eax, [ecx + esi - 8]
mov dword [esp + 0x78], eax
mov dword [esp + 0x64], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x68], eax
mov eax, edi
cdq
xor eax, edx
sub eax, edx
and eax, 1
xor eax, edx
sub eax, edx
cmp eax, 1
jne 0x1003fb19
mov dword [esp + 0x1c], eax
jmp 0x1004039e
cmp ebx, 3
jge 0x1003fb2b
mov dword [esp + 0x1c], 2
jmp 0x1004039e
mov eax, esi
mov edx, 2
mov edi, dword [eax]
add eax, 8
mov dword [ecx + esi - 0x10], edi
mov edi, dword [eax - 4]
mov dword [ecx + esi - 0xc], edi
add ecx, 8
dec edx
jne 0x1003fb32
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x28]
lea edi, [ecx + ecx - 1]
imul ebx, eax
imul edi, eax
shl edi, 3
lea ecx, [eax*8]
lea edx, [edi + eax*4]
mov dword [esp + 0x30], ecx
shl ebx, 3
add edx, ecx
add edx, ebx
push edx
call fcn.10003ce0
add esp, 4
mov dword [esp + 0x44], eax
test eax, eax
je 0x1004039e
mov edx, dword [esp + 0x30]
mov ecx, eax
add ebx, ecx
mov dword [esp + 0x34], ebx
lea eax, [edx + ebx]
add edi, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x28]
test edi, edi
jle 0x1003fbbc
lea eax, [esp + 0x8c]
mov dword [eax], ecx
add eax, 4
add ecx, edx
dec edi
jne 0x1003fbb2
mov eax, dword [ebp + 0x14]
cmp eax, 4
je 0x1003fc06
mov edi, dword [esp + 0x34]
mov ecx, dword [ebp + 0xc]
push edi
push esi
push 1
push 0
push ecx
push 2
push eax
call fcn.100460f0
add esp, 0x1c
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x1004039e
mov ebx, dword [ebp + 0x18]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push edi
push edx
push eax
push ecx
call fcn.10045d80
add esp, 0x14
jmp 0x1003fc20
mov ebx, dword [ebp + 0x18]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push edx
push eax
push ecx
call fcn.10045a60
add esp, 0x10
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x1003fc32
mov edi, dword [esp + 0x38]
mov ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x38]
mov eax, 1
cmp edx, eax
jl 0x1003fc50
lea ecx, [esi + 4]
mov dword [ecx], eax
inc eax
add ecx, 4
cmp eax, edx
jle 0x1003fc46
mov eax, 1
cmp edx, eax
jl 0x1003fc70
mov ecx, dword [esp + 0x10]
lea ecx, [ecx*4 - 4]
mov dword [ecx + esi - 4], eax
inc eax
sub ecx, 4
cmp eax, edx
jle 0x1003fc64
lea esi, [edx + 1]
test esi, esi
mov dword [esp + 0x2c], esi
jle 0x1003fc9b
mov eax, dword [esp + 0x34]
mov ecx, esi
mov edi, dword [ebp + 8]
add eax, 8
dec ecx
mov edi, dword [ebx + edi*8 - 8]
mov dword [eax - 8], edi
mov edi, dword [ebp + 8]
mov edi, dword [ebx + edi*8 - 4]
mov dword [eax - 4], edi
jne 0x1003fc81
mov eax, dword [esp + 0x10]
sub eax, edx
lea edx, [eax - 1]
cmp esi, edx
mov dword [esp + 0x3c], edx
jge 0x1003fce4
lea eax, [esi*8]
sub edx, esi
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x14]
mov ecx, eax
shl edi, 3
sub ecx, edi
mov edi, dword [ebp + 8]
add eax, 8
dec edx
lea ecx, [ecx + edi*8]
mov edi, dword [ecx + ebx - 8]
mov dword [eax + esi - 8], edi
mov ecx, dword [ecx + ebx - 4]
mov dword [eax + esi - 4], ecx
jne 0x1003fcb9
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x10]
cmp edx, edi
jge 0x1003fd0d
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov esi, edi
lea eax, [eax + edx*8]
sub esi, edx
mov edx, dword [ecx + ebx]
mov dword [eax], edx
mov edx, dword [ecx + ebx + 4]
mov dword [eax + 4], edx
add eax, 8
dec esi
jne 0x1003fcfb
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x70]
push eax
push esi
push ecx
push edx
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.10026860
mov ecx, dword [esp + 0x2c]
add esp, 0x1c
lea eax, [esp + 0x70]
push esi
push eax
push ecx
push edi
call fcn.10026e30
add esp, 0x10
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x1004039e
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x1003fda7
mov esi, 8
lea edx, [esp + 0x8c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x1003fd7f
mov edi, dword [edx]
mov ecx, eax
and ecx, 0x1fffffff
shl ecx, 1
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [edx]
mov eax, esi
add eax, ecx
add esi, 8
add edx, 4
mov dword [eax], 0
mov dword [eax + 4], 0x3ff00000
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x1003fd67
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jge 0x1003fe01
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
sub ecx, eax
lea edx, [esp + eax*4 + 0x8c]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x1003fddc
mov edi, dword [edx]
mov ecx, eax
and ecx, 0x1fffffff
shl ecx, 1
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [edx]
lea eax, [esi - 0x10]
add eax, ecx
sub esi, 8
add edx, 4
mov dword [eax], 0
mov dword [eax + 4], 0x3ff00000
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x1003fdc4
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x1003fe46
mov esi, dword [ebp + 8]
lea edi, [esp + 0x8c]
mov dword [esp + 0x18], eax
mov ecx, dword [edi]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x74]
push edx
push eax
push 1
push 0
push ecx
push esi
call fcn.1002a3e0
mov eax, dword [esp + 0x34]
add esp, 0x1c
add edi, 4
dec eax
mov dword [esp + 0x18], eax
jne 0x1003fe17
jmp 0x1003fe49
mov esi, dword [ebp + 8]
fld qword [ebx + esi*8 - 8]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
fstp qword [esp + 0x48]
fld qword [edx + ebx]
test eax, eax
fstp qword [esp + 0x50]
mov dword [esp + 0x1c], 0
jle 0x10040005
shl eax, 3
lea ecx, [esp + 0x2a8]
mov dword [esp + 0x40], eax
mov dword [esp + 0x18], ecx
lea edi, [esp + eax + 0x170]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
add edx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], edx
lea ecx, [esp + 0x8c]
mov dword [esp + 0x24], eax
lea edx, [esp + eax*4 + 0x8c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x168]
mov eax, dword [eax]
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x38]
push ecx
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push edx
push 0
mov dword [esp + 0x70], eax
push eax
mov eax, dword [esp + 0x2c]
push ebx
push 0xffffffffffffffff
push eax
push ecx
call fcn.1004e640
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x60]
add esp, 0x2c
mov dword [esi], edx
mov dword [esi + 4], eax
mov eax, dword [ecx]
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0x168]
mov dword [esp + 0x7c], eax
push edx
mov edx, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
push ecx
push 0
push eax
mov eax, dword [ebp + 8]
push ebx
push 0xffffffffffffffff
push edx
push eax
call fcn.1004e640
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
fld qword [edi]
add esp, 0x2c
lea ecx, [esp + 0x168]
fadd qword [esi]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x1c]
fstp qword [esi]
push 0xffffffffffffffff
push ecx
mov ecx, dword [ebp + 8]
push 0
push edx
push ebx
push 0xffffffffffffffff
push eax
push ecx
call fcn.1004e640
fld qword [esi]
fsub qword [edi]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
add esp, 0x2c
lea edx, [esp + 0x168]
fstp qword [esi]
push edx
push eax
push ecx
push 0xffffffffffffffff
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [ebp + 8]
push 0
push eax
push ebx
push 0xffffffffffffffff
push ecx
push edx
call fcn.1004e640
fld qword [esi]
fsub qword [edi]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
mov eax, 4
add esp, 0x2c
add ecx, eax
add edx, eax
fstp qword [esi]
mov eax, dword [esp + 0x24]
add esi, 8
dec eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x24], eax
jne 0x1003feb9
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
add edx, ecx
mov ecx, dword [esp + 0x14]
inc eax
add edi, 8
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
jl 0x1003fe89
mov esi, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x10]
mov eax, esi
sub ecx, esi
mov edx, 2
mov edi, dword [ecx + eax]
mov dword [eax], edi
mov edi, dword [ecx + eax + 4]
mov dword [eax + 4], edi
add eax, 8
dec edx
jne 0x10040014
mov edx, dword [esp + 0x2c]
cmp edx, 1
jle 0x10040043
lea ecx, [edx*4 - 4]
lea edi, [esi + 0x10]
and ecx, 0x3ffffffc
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x3c]
cmp edx, eax
jge 0x100400a7
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
mov edx, ecx
shl edx, 4
shl edi, 4
sub eax, ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x24], eax
jmp 0x1004006e
mov edi, dword [esp + 0x40]
mov esi, dword [ebp + 0x1c]
mov eax, edx
lea ecx, [edx + esi]
mov esi, dword [ebp + 0x10]
sub eax, edi
add eax, esi
mov edi, 2
mov esi, dword [eax]
add eax, 8
mov dword [ecx], esi
mov esi, dword [eax - 4]
mov dword [ecx + 4], esi
add ecx, 8
dec edi
jne 0x1004007f
mov eax, dword [esp + 0x24]
add edx, 0x10
dec eax
mov dword [esp + 0x24], eax
jne 0x10040067
mov esi, dword [ebp + 0x1c]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
lea ecx, [edx - 1]
cmp eax, ecx
jge 0x100400c8
mov edi, eax
sub ecx, eax
shl edi, 4
shl ecx, 2
add edi, esi
and ecx, 0x3ffffffc
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x10]
mov eax, edx
shl eax, 4
mov edi, 2
mov edx, dword [ecx]
add ecx, 8
mov dword [eax + esi - 0x10], edx
mov edx, dword [ecx - 4]
mov dword [eax + esi - 0xc], edx
add eax, 8
dec edi
jne 0x100400d5
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
push esi
lea ecx, [esp + 0x74]
push eax
mov eax, dword [ebp + 8]
push ecx
push 1
push 0
push edx
push eax
call fcn.1003f730
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x30]
add esp, 0x1c
test eax, eax
jle 0x100401f3
lea ecx, [esp + 0xd8]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x20], ecx
mov ecx, eax
mov edx, ecx
or eax, 0xffffffff
shl edx, 4
sub eax, ecx
lea esi, [esp + edx + 0x238]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x228]
push eax
mov eax, dword [ebp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [ebp + 8]
push 1
push edi
push 0
push eax
push ebx
push 0xffffffffffffffff
push ecx
push edx
call fcn.10055180
mov ecx, dword [esp + 0x4c]
mov eax, esi
add esp, 0x2c
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x54]
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x228]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push edi
push 0
push ecx
push ebx
push 0xffffffffffffffff
push edx
push eax
call fcn.10055180
mov eax, dword [esp + 0x4c]
add esp, 0x2c
mov ecx, 2
fld qword [eax]
fsub qword [esi]
add esi, 8
add eax, 8
dec ecx
fstp qword [eax - 8]
jne 0x100401c4
mov ecx, dword [esp + 0x40]
inc edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
add ecx, edi
cmp ecx, eax
jl 0x10040141
mov esi, dword [esp + 0x10]
mov edi, eax
jmp 0x100401fb
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
cmp edi, 1
jne 0x1004022a
fld qword [0x10059b60]
fdiv qword [esp + 0x2a8]
lea eax, [esp + 0xd8]
mov ecx, 2
fld qword [eax]
fmul st(1)
add eax, 8
dec ecx
fstp qword [eax - 8]
jne 0x10040219
fstp st(0)
jmp 0x10040266
lea edx, [esp + 0x80]
lea eax, [esp + 0xd8]
push edx
lea ecx, [esp + 0xdc]
push eax
push ecx
push 2
lea edx, [esp + 0x2b8]
push 2
push edx
push edi
push edi
push 2
call fcn.1004d0a0
add esp, 0x24
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x1004039e
test esi, esi
jle 0x1004036a
mov eax, dword [ebp + 0x1c]
xor ebx, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], esi
jmp 0x10040285
mov edi, dword [esp + 0x14]
test edi, edi
jle 0x100402ce
lea ecx, [esp + 0xd8]
lea esi, [esp + 0x8c]
mov dword [esp + 0x24], edi
mov edx, dword [esi]
mov eax, dword [esp + 0x2c]
lea edi, [ebx + edx]
mov edx, 2
fld qword [ecx]
fmul qword [edi]
add ecx, 8
add eax, 8
dec edx
fadd qword [eax - 8]
fstp qword [eax - 8]
jne 0x100402a9
mov eax, dword [esp + 0x24]
add esi, 4
dec eax
mov dword [esp + 0x24], eax
jne 0x1004029b
mov edi, dword [esp + 0x14]
cmp edi, dword [esp + 0x28]
jge 0x10040345
mov ecx, dword [esp + 0x14]
mov ebx, ecx
lea eax, [esp + ecx*4 + 0x8c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
shl ebx, 4
sub eax, ecx
mov esi, ebx
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x2c]
lea edi, [eax + edx]
mov eax, esi
sub eax, ebx
mov edx, 2
lea eax, [esp + eax + 0xd8]
fld qword [eax]
fmul qword [edi]
add eax, 8
add ecx, 8
dec edx
fadd qword [ecx - 8]
fstp qword [ecx - 8]
jne 0x10040315
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
add esi, 0x10
add ecx, 4
dec eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
jne 0x100402f4
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
add ebx, 8
add ecx, 0x10
dec eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], eax
jne 0x10040281
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
test eax, eax
lea edx, [eax + 1]
jl 0x1004039e
mov eax, dword [ebp + 0x1c]
sub esi, edx
shl esi, 4
add esi, eax
mov ecx, esi
mov esi, edx
mov edx, 2
mov edi, dword [eax]
add eax, 8
mov dword [ecx], edi
mov edi, dword [eax - 4]
mov dword [ecx + 4], edi
add ecx, 8
dec edx
jne 0x10040388
dec esi
jne 0x10040383
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov dword [eax], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x68]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x44]
push eax
call fcn.10003d40
mov eax, dword [esp + 0x20]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret