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

Disassembly:
mov eax, 0x12bc
call fcn.1005a3d0
mov eax, dword [0x10076068]
xor eax, esp
mov dword [esp + 0x12b8], eax
push ebx
push esi
mov esi, dword [esp + 0x12c8]
mov eax, dword [esi + 0x2c]
imul eax, dword [esi + 0x28]
mov ecx, dword [esi]
mov ebx, dword [ecx + 0x3c]
mov edx, dword [esi + 0x5884]
mov ecx, dword [esi + 0x5874]
push edi
mov edi, eax
lea eax, [eax + eax*2]
shl eax, 7
mov dword [esp + 0x3c], edx
cdq
sar edi, 3
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], 0x28
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
call fcn.10038a20
call fcn.1003a0f0
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1003a454
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x12b8]
xor ecx, esp
call fcn.10059bfe
add esp, 0x12bc
ret
cmp edi, 0x60
jge 0x1003a461
mov dword [esp + 0x2c], 0x60
add ebx, 2
mov dword [esp + 0xc], ebx
push ebp
lea esp, [esp]
mov ecx, dword [esp + 0x14]
mov edi, 1
sub dword [esp + 0x10], edi
mov edx, ecx
sub ecx, edi
mov dword [esp + 0x14], ecx
test edx, edx
jle 0x1003a7a9
fld dword [esp + 0x64]
xor ebp, ebp
fabs
fcomp qword [0x10069f28]
fnstsw ax
test ah, 0x41
jnp 0x1003a4b6
cmp ecx, ebp
je 0x1003a4b6
cmp dword [esi + 0x5878], ebp
je 0x1003a4b6
xor ebx, ebx
mov dword [esp + 0x24], ebx
jmp 0x1003a4bc
mov dword [esp + 0x24], edi
mov ebx, edi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, ecx
cdq
idiv dword [esp + 0x10]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
sub ecx, eax
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x408]
push ecx
push esi
mov dword [esp + 0x44], eax
call fcn.1003dc70
fld dword [esp + 0x70]
add esp, 4
fstp dword [esp]
call fcn.10039c60
add esp, 4
test ebx, ebx
je 0x1003a52c
push 0x1080
lea edx, [esi + 0x117c]
push 0
push edx
call fcn.10059b00
lea eax, [esp + 0x414]
push eax
call fcn.100386d0
add esp, 0x10
lea eax, [esi + 0x158]
push eax
call fcn.10047490
add esp, 4
jmp 0x1003a540
lea ecx, [esp + 0x408]
push 0
push ecx
call fcn.1003d220
add esp, 8
sub dword [esp + 0x1c], 1
jns 0x1003a576
lea edi, [esi + 0xd58]
push edi
call fcn.10038cc0
push edi
call fcn.10037ec0
mov edx, dword [esp + 0x38]
add esp, 8
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x9c]
push ecx
lea edx, [esp + 0x410]
push edx
call fcn.100468b0
lea eax, [esi + 0x158]
push eax
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x41c]
push ecx
call fcn.100397f0
mov edi, eax
add esp, 0x18
mov dword [esp + 0x18], edi
test edi, edi
je 0x1003a76a
mov edx, dword [esp + 0xa8]
add dword [esp + 0x34], edx
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
adc ebp, eax
add dword [esp + 0x28], ecx
adc dword [esp + 0x2c], edx
test ebx, ebx
je 0x1003a61d
lea edi, [esp + 0x408]
call fcn.10039a30
mov eax, edi
push eax
call fcn.10038750
mov ecx, edi
push ecx
call fcn.1003d580
mov edx, dword [esp + 0x44]
push edx
mov eax, edi
push eax
call fcn.1003d140
add esp, 0x10
mov dword [esp + 0x18], eax
mov edi, eax
lea ecx, [esp + 0x408]
push ecx
call fcn.1003d7a0
add esp, 4
test edi, edi
je 0x1003a778
lea edx, [esp + 0x408]
push edx
call fcn.1003d9a0
add esp, 4
test eax, eax
jne 0x1003a540
mov eax, dword [esi + 0x20]
cdq
add dword [esp + 0x34], eax
adc ebp, edx
cmp dword [esp + 0x90], 0
je 0x1003a6e6
lea eax, [esi + 0xd58]
push eax
call fcn.10038cc0
cdq
mov edi, eax
lea eax, [esi + 0xd5c]
push eax
lea eax, [esi + 0x158]
push eax
mov ebx, edx
call fcn.10047eb0
xor ecx, ecx
add esp, 0xc
add eax, edi
adc ecx, ebx
add eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x24]
adc ecx, ebp
add eax, 0x400
adc ecx, 0
mov edx, ecx
shrd eax, edx, 0xb
mov ecx, eax
shr edx, 0xb
add ecx, 0x1e
mov eax, edx
adc eax, 0
mov dword [esp + 0x50], ecx
mov ecx, eax
and eax, 0x7fffffff
and ecx, 0x80000000
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], 0
fild qword [esp + 0x50]
fild qword [esp + 0x58]
fchs
faddp st(1)
jmp 0x1003a702
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
call fcn.10039bc0
add esp, 0x10
mov eax, dword [esi + 0x5878]
fstp qword [esp + 0x78]
test eax, eax
jle 0x1003a74c
test ebp, ebp
ja 0x1003a71e
cmp dword [esp + 0x34], 0x3fc00000
jbe 0x1003a74c
mov ecx, 1
add dword [esp + 0x14], ecx
add dword [esp + 0x10], ecx
sar eax, 1
mov dword [esi + 0x5878], eax
test ebx, ebx
je 0x1003a470
lea eax, [esp + 0x408]
call fcn.10039b70
jmp 0x1003a470
test ebx, ebx
jne 0x1003a7a4
cmp dword [esp + 0x40], ebx
je 0x1003a470
lea ecx, [esp + 0x60]
call fcn.10038b20
fstp st(0)
jmp 0x1003a470
mov eax, dword [esi + 4]
push 1
push eax
call fcn.1004c5d0
add esp, 8
xor eax, eax
push eax
lea eax, [esp + 0x40c]
push eax
call fcn.1003a160
mov ecx, dword [esp + 0x12d0]
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10059bfe
add esp, 0x12bc
ret
mov edi, 1
cmp dword [esp + 0x18], 0
je 0x1003a778
cmp dword [esp + 0x90], 0
jne 0x1003a7c9
lea eax, [esi + 0xd58]
push eax
call fcn.10038cc0
add esp, 4
push edi
lea ecx, [esi + 0xd5c]
push ecx
lea edx, [esi + 0x58]
push edx
lea eax, [esi + 0x158]
push eax
call fcn.10047e00
add esp, 0x10
test eax, eax
je 0x1003a778
mov ecx, dword [esi + 0x170]
add ecx, dword [esp + 0x20]
mov edx, dword [esi + 4]
lea eax, [esi + 0x170]
push eax
push ecx
push edx
call fcn.1004c5f0
add esp, 0xc
test eax, eax
je 0x1003a778
mov eax, edi
jmp 0x1003a77a