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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10197e50
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [0x10218460]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov byte [ebx + 0x10], 0
mov byte [edi + 0x10], 0
mov eax, dword [ebx + 0xc]
xor esi, esi
cmp eax, esi
jl 0x1003f671
je 0x1003f686
cmp byte [ebx + 0x10], 0
je 0x1003f686
mov esi, ebx
call fcn.1012c8b0
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], eax
mov byte [ebx + 0x11], 1
xor esi, esi
mov dword [ebx + 8], esi
mov eax, dword [edi + 0xc]
cmp eax, esi
jl 0x1003f698
je 0x1003f6bb
cmp byte [edi + 0x10], 0
je 0x1003f6bb
cmp byte [edi + 0x11], 0
je 0x1003f6ae
mov eax, dword [edi + 4]
cmp eax, esi
je 0x1003f6ae
push eax
call fcn.10178e5d
add esp, 4
mov dword [edi + 8], esi
mov dword [edi + 4], esi
mov dword [edi + 0xc], esi
mov byte [edi + 0x11], 1
fld1
sub esp, 0xc
fstp dword [esp + 8]
lea eax, [esp + 0x68]
fldz
mov dword [edi + 8], esi
fst dword [esp + 4]
fstp dword [esp]
call fcn.1004b450
mov esi, dword [ebp + 0xc]
mov dword [esp + 0xb0], 1
fld dword [0x101e93a8]
mov eax, dword [esi]
fstp dword [esp + 0x34]
mov edx, dword [eax + 0x2c]
mov ecx, esi
call edx
mov eax, dword [eax + 0x10]
cmp eax, 2
jge 0x1003f71a
xor eax, eax
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
mov ecx, esi
call edx
mov ecx, dword [eax + 0xc]
add eax, 8
lea eax, [esp + 0x8c]
call fcn.100489a0
mov byte [esp + 0xb0], 2
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
mov ecx, esi
call edx
add eax, 8
mov eax, dword [eax + 4]
add eax, 0xc
mov ecx, eax
lea eax, [esp + 0x98]
call fcn.100489a0
lea ecx, [esp + 0x8c]
lea eax, [esp + 0x7c]
lea edx, [esp + 0x98]
mov byte [esp + 0xb0], 3
call fcn.10048a70
call fcn.10048ca0
fstp dword [esp + 0x40]
fldz
fld dword [esp + 0x40]
fcom st(1)
fnstsw ax
fld1
test ah, 0x41
jne 0x1003f7a8
mov eax, dword [ebp + 0x10]
fld dword [eax + 0xc]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fdiv st(2)
jmp 0x1003f7aa
fld st(0)
fstp dword [esp + 0x30]
fxch st(2)
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x1003f7cb
mov ecx, dword [ebp + 0x10]
fstp st(1)
fld dword [ecx + 0x10]
fstp dword [esp + 0x1c]
fdivr dword [esp + 0x1c]
jmp 0x1003f7cd
fstp st(0)
mov edx, dword [esi]
fstp dword [esp + 0x1c]
mov eax, dword [edx + 0x50]
mov ecx, esi
call eax
mov ecx, eax
fld dword [ecx + 0x14]
fstp dword [esp + 0x2c]
fldz
fld dword [esp + 0x40]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x1003f801
fld dword [ecx + 0xc]
fstp dword [esp + 0x14]
fdivr dword [esp + 0x14]
jmp 0x1003f805
fstp st(0)
fld1
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fld dword [esp + 0x30]
fcom st(1)
fnstsw ax
fld dword [esp + 0x2c]
test ah, 0x41
je 0x1003f824
fstp st(2)
jmp 0x1003f83d
fxch st(2)
fld st(0)
fmulp st(3)
fxch st(2)
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fcom st(1)
fnstsw ax
test ah, 5
jnp 0x1003f822
fstp st(0)
mov edx, dword [esi]
fstp st(0)
mov eax, dword [edx + 0x34]
fstp st(0)
mov ecx, esi
call eax
mov edx, dword [esi]
mov dword [esp + 0x38], eax
mov eax, dword [edx + 0x38]
mov ecx, esi
call eax
fld dword [esp + 0x24]
fst dword [esp + 0x28]
mov dword [esp + 0x3c], eax
fld dword [esp + 0x1c]
fcompp
fnstsw ax
test ah, 0x41
jne 0x1003faad
fild dword [esp + 0x38]
fstp dword [esp + 0x48]
fild dword [esp + 0x3c]
fstp dword [esp + 0x54]
fld dword [esp + 0x28]
fmul dword [esp + 0x48]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fistp dword [esp + 0x4c]
fld dword [esp + 0x54]
movsx ebx, word [esp + 0x4c]
fmul dword [esp + 0x28]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fistp dword [esp + 0x58]
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x1c]
mov eax, dword [edx + 0x3c]
add edi, 0x1c
mov ecx, edi
call eax
cmp ebx, eax
jg 0x1003faa7
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
mov ecx, edi
call eax
movsx ecx, word [esp + 0x58]
cmp ecx, eax
jg 0x1003faa7
mov edx, dword [edi]
mov eax, dword [edx + 0x3c]
mov ecx, edi
call eax
mov edx, dword [edi]
mov ebx, eax
movsx eax, word [esp + 0x4c]
sub ebx, eax
mov eax, dword [edx + 0x40]
mov ecx, edi
mov dword [esp + 0x20], ebx
call eax
movsx ecx, word [esp + 0x58]
sub eax, ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x18], eax
fld dword [ecx + 8]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fmul dword [esp + 0x28]
fmul dword [esp + 0x40]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fistp dword [esp + 0x30]
movsx ecx, word [esp + 0x30]
mov dword [esp + 0x44], ecx
cmp ecx, 1
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x44]
jg 0x1003f949
lea ecx, [esp + 0x14]
test eax, eax
mov edx, dword [ecx]
mov dword [esp + 0x44], edx
mov dword [esp + 0x24], 0
jle 0x1003fa84
xor edi, edi
test ebx, ebx
mov dword [esp + 0x50], edi
jle 0x1003fa70
fld dword [esp + 0x28]
mov eax, dword [esi]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0x44]
push ecx
mov ecx, dword [esp + 0x28]
fstp dword [esp]
push ecx
push edi
push edx
mov ecx, esi
call eax
fstp dword [esp + 0x14]
fldz
fld dword [esp + 0x14]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x1003fa10
fstp st(0)
sub esp, 0xc
fld dword [esp + 0x34]
lea eax, [esp + 0x88]
fstp dword [esp + 8]
fild dword [esp + 0x30]
fstp dword [esp + 4]
fild dword [esp + 0x5c]
fstp dword [esp]
call fcn.1004b450
mov esi, dword [ebp + 0x14]
push eax
mov byte [esp + 0xb4], 4
call fcn.1003e640
add esp, 4
lea ecx, [esp + 0x7c]
mov byte [esp + 0xb0], 3
call fcn.1004b470
fld dword [esp + 0x14]
mov ebx, dword [ebp + 0x18]
push ecx
fstp dword [esp]
call fcn.1014b020
fld dword [0x101e92ec]
mov esi, dword [ebp + 0xc]
mov ebx, dword [esp + 0x24]
fstp dword [esp + 0x38]
add esp, 4
jmp 0x1003fa5c
fld dword [esp + 0x34]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x1003fa5a
fstp dword [esp + 0x34]
sub esp, 0xc
fld dword [esp + 0x34]
lea eax, [esp + 0x78]
fstp dword [esp + 8]
fild dword [esp + 0x30]
fstp dword [esp + 4]
fild dword [esp + 0x5c]
fstp dword [esp]
call fcn.1004b450
mov ecx, eax
lea eax, [esp + 0x5c]
call fcn.1004b480
lea ecx, [esp + 0x6c]
call fcn.1004b470
jmp 0x1003fa5c
fstp st(0)
add edi, dword [esp + 0x44]
cmp edi, ebx
mov dword [esp + 0x50], edi
jl 0x1003f96d
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
add ecx, dword [esp + 0x44]
cmp ecx, eax
mov dword [esp + 0x24], ecx
jl 0x1003f95f
fld dword [esp + 0x28]
fmul dword [esp + 0x2c]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fld dword [esp + 0x1c]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x1003f888
fstp st(0)
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov ecx, dword [ebx + 8]
test ecx, ecx
jne 0x1003fcb7
fld dword [esp + 0x68]
mov ecx, dword [ebp + 0x10]
fst dword [esp + 0x14]
fmul dword [ecx + 8]
fmul dword [esp + 0x40]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x1c]
cmp byte [ebp + 0x20], 0
movsx ebx, word [esp + 0x1c]
je 0x1003fc7d
test ebx, ebx
jle 0x1003fc7d
fld dword [esp + 0x60]
call fcn.10189ea0
fld dword [esp + 0x64]
mov edi, eax
mov dword [esp + 0x54], edi
call fcn.10189ea0
fild dword [esp + 0x38]
mov dword [esp + 0x48], eax
fmul dword [esp + 0x68]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x1c]
fild dword [esp + 0x3c]
fmul dword [esp + 0x68]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x2c]
mov ecx, edi
sub ecx, ebx
xor edx, edx
mov dword [esp + 0x18], ecx
cmp ecx, edx
mov dword [esp + 0x20], edx
lea ecx, [esp + 0x18]
jg 0x1003fb4b
lea ecx, [esp + 0x20]
mov ecx, dword [ecx]
sub eax, ebx
mov dword [esp + 0x18], eax
cmp eax, edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x20], edx
lea eax, [esp + 0x18]
jg 0x1003fb67
lea eax, [esp + 0x20]
mov edx, dword [eax]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x1c]
add edi, 0x1c
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0x3c]
mov ecx, edi
call edx
movsx ecx, word [esp + 0x1c]
sub eax, ecx
mov ecx, dword [esp + 0x54]
add ecx, ebx
mov dword [esp + 0x20], eax
cmp ecx, eax
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x18]
jl 0x1003fb9e
lea eax, [esp + 0x20]
mov edx, dword [eax]
mov eax, dword [edi]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 0x40]
mov ecx, edi
call edx
movsx ecx, word [esp + 0x2c]
sub eax, ecx
mov ecx, dword [esp + 0x48]
add ebx, ecx
mov dword [esp + 0x20], eax
cmp ebx, eax
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x18]
jl 0x1003fbce
lea eax, [esp + 0x20]
mov eax, dword [eax]
mov ebx, dword [esp + 0x38]
cmp ebx, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ebx
jge 0x1003fc7d
mov edi, dword [esp + 0x3c]
cmp edi, dword [esp + 0x30]
mov dword [esp + 0x1c], edi
jge 0x1003fc6e
fld dword [esp + 0x14]
mov edx, dword [esi]
mov eax, dword [ebp + 8]
mov edx, dword [edx + 0x44]
push ecx
fstp dword [esp]
push ebx
push edi
push eax
mov ecx, esi
call edx
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fld dword [esp + 0x34]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x1003fc5b
fstp dword [esp + 0x34]
sub esp, 0xc
fld dword [esp + 0x20]
lea eax, [esp + 0x78]
fstp dword [esp + 8]
fild dword [esp + 0x38]
fstp dword [esp + 4]
fild dword [esp + 0x28]
fstp dword [esp]
call fcn.1004b450
mov ecx, eax
lea eax, [esp + 0x5c]
call fcn.1004b480
lea ecx, [esp + 0x6c]
call fcn.1004b470
jmp 0x1003fc5d
fstp st(0)
add edi, 1
cmp edi, dword [esp + 0x30]
mov dword [esp + 0x1c], edi
jl 0x1003fbf2
mov eax, dword [esp + 0x20]
add ebx, 1
cmp ebx, eax
mov dword [esp + 0x2c], ebx
jl 0x1003fbe4
mov esi, dword [ebp + 0x14]
lea eax, [esp + 0x5c]
push eax
call fcn.1003e640
fld dword [esp + 0x38]
mov ebx, dword [ebp + 0x18]
fstp dword [esp]
call fcn.1014b020
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fld1
fld dword [ebp + 0x1c]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x1003fcf5
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push edi
push ebx
push ecx
push edx
push ecx
fstp dword [esp]
call fcn.1003eba0
add esp, 0x14
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fstp st(0)
mov eax, ecx
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret