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

Disassembly:
sub esp, 0x114
push ebp
push esi
mov esi, dword [esp + 0x120]
lea eax, [esp + 0x70]
push eax
push esi
mov dword [esp + 0xf0], esi
call fcn.100123b0
lea eax, [esp + 0xc0]
push eax
push esi
call fcn.10050400
lea eax, [esp + 0xe0]
push eax
push esi
call fcn.100123b0
lea eax, [esp + 0xa0]
push eax
push esi
call fcn.10050400
lea eax, [esp + 0x10c]
mov dword [esp + 0x8c], 0
push eax
push esi
mov dword [esp + 0x90], 0
mov dword [esp + 0x8c], 0
call fcn.100113d0
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.100123b0
lea eax, [esp + 0x7c]
push eax
push esi
call fcn.100123b0
lea eax, [esp + 0x64]
push eax
push esi
call fcn.10011000
add esp, 0x40
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.10011000
mov ebp, dword [esp + 0x12c]
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x74]
push eax
push ebp
call fcn.1003e890
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x1003f10c
push ebx
mov ebx, dword [esp + 0x12c]
lea eax, [esp + 0xc]
push eax
push ebx
push ebp
call fcn.1003e5e0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1003f10b
push edi
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.10012390
mov esi, eax
add esp, 8
test esi, esi
jne 0x1003f10a
lea eax, [esp + 0x54]
mov dword [esp + 0x1c], 1
push eax
lea eax, [edi*2 + 0x3e]
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
push eax
lea eax, [esp + 0x24]
push eax
call fcn.10012870
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1003f10a
mov ebp, dword [esp + 0x58]
sub ebp, dword [esp + 0x60]
inc ebp
cmp dword [esp + 0x138], 1
je 0x1003ed8c
mov eax, 0x66666667
imul ebp
sar edx, 2
mov ebp, edx
shr ebp, 0x1f
add ebp, 2
add ebp, edx
movd xmm0, dword [esp + 0x10]
sub esp, 8
cvtdq2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10045d30
movd xmm1, dword [esp + 0x18]
cvtdq2pd xmm1, xmm1
fstp qword [esp + 0x1c]
movsd xmm0, qword [esp + 0x1c]
mulsd xmm0, xmm1
movsd qword [esp], xmm0
call fcn.10045e10
fstp qword [esp + 0x1c]
movsd xmm0, qword [esp + 0x1c]
addsd xmm0, qword [0x10057678]
cvttsd2si eax, xmm0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x80]
push eax
push ebp
call fcn.1003d780
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1003f10a
lea eax, [esp + 0x1c]
push eax
mov eax, 0x18
cdq
idiv dword [esp + 0x78]
push eax
call fcn.10012390
mov esi, eax
add esp, 8
test esi, esi
jne 0x1003f10a
lea eax, [esp + 0x54]
push eax
push ebp
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x84]
push eax
call fcn.10012840
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1003f10a
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x58]
push ebp
push eax
call fcn.10011690
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1003f10a
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x1003ee80
lea eax, [esp + 0xc0]
push eax
push 1
call fcn.10012390
add esp, 8
jmp 0x1003ef2c
cmp eax, 6
jne 0x1003eeb4
lea eax, [esp + 0xc0]
push eax
push 0x80000000
call fcn.10012390
mov esi, eax
add esp, 8
test esi, esi
jne 0x1003f10a
mov dword [esp + 0xc4], 1
jmp 0x1003ef36
lea eax, [esp + 0x1c]
push eax
push 2
call fcn.10012390
mov esi, eax
add esp, 8
test esi, esi
jne 0x1003f10a
cmp dword [esp + 0x70], 3
lea eax, [esp + 0x54]
push eax
push ebp
lea eax, [esp + 0x24]
push eax
jne 0x1003eee6
call fcn.10012ec0
jmp 0x1003eeeb
call fcn.100123d0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1003f10a
lea eax, [esp + 0x1c]
push eax
push 1
call fcn.10012390
mov esi, eax
add esp, 8
test esi, esi
jne 0x1003f10a
lea eax, [esp + 0xc0]
push eax
push ebp
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.10012840
add esp, 0x10
mov esi, eax
test esi, esi
jne 0x1003f10a
lea eax, [esp + 0x1c]
push eax
push 2
call fcn.10012390
mov esi, eax
add esp, 8
test esi, esi
jne 0x1003f10a
lea eax, [esp + 0xd8]
push eax
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.10012ec0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1003f10a
lea eax, [esp + 0x34]
push eax
push dword [ebx]
call fcn.10011090
mov esi, eax
add esp, 8
test esi, esi
jne 0x1003f10a
lea eax, [esp + 0x44]
push eax
push dword [ebx]
call fcn.10011090
mov esi, eax
add esp, 8
test esi, esi
jne 0x1003f10a
push dword [esp + 0x3c]
push 1
call fcn.10011380
mov esi, eax
add esp, 8
test esi, esi
jne 0x1003f10a
mov ebx, dword [ebx + 4]
xor edi, edi
test ebx, ebx
je 0x1003f0a4
jmp 0x1003efd0
push dword [esp + 0x13c]
call fcn.10050400
mov esi, eax
add esp, 4
test esi, esi
jne 0x1003f10a
lea eax, [esp + 0xf4]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x74]
push ebp
push eax
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
push dword [esp + 0x148]
call fcn.1003d820
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x1003f10a
mov eax, edi
lea esi, [esp + 0x34]
xor eax, 1
shl edi, 4
mov dword [esp + 0x14], eax
shl eax, 4
add eax, esi
push eax
push ebp
lea eax, [esp + 0xfc]
push eax
mov eax, esi
add eax, edi
push eax
call fcn.1003e6b0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1003f10a
mov edi, dword [esp + 0x14]
cmp dword [ebx], eax
je 0x1003f099
xor dword [esp + 0x10c], 1
lea esi, [esp + 0x34]
mov eax, edi
shl edi, 4
xor eax, 1
mov dword [esp + 0x14], eax
shl eax, 4
add eax, esi
push eax
push ebp
lea eax, [esp + 0xfc]
push eax
mov eax, esi
add eax, edi
push eax
call fcn.1003e6b0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1003f10a
mov edi, dword [esp + 0x14]
mov ebx, dword [ebx + 0x10]
test ebx, ebx
jne 0x1003efd0
mov eax, dword [esp + 0x130]
mov ebx, dword [esp + 0x134]
push ebx
push dword [eax]
call fcn.10011090
mov esi, eax
add esp, 8
test esi, esi
jne 0x1003f10a
add edi, edi
xor ebp, ebp
cmp dword [esp + edi*8 + 0x38], ebp
jl 0x1003f103
xor ebx, ebx
nop
mov eax, dword [esp + 0x134]
mov eax, dword [eax + 8]
add eax, ebx
push eax
mov eax, dword [esp + edi*8 + 0x40]
add eax, ebx
push eax
call fcn.10011e70
mov esi, eax
add esp, 8
test esi, esi
jne 0x1003f0fc
inc ebp
add ebx, 0x30
cmp ebp, dword [esp + edi*8 + 0x38]
jle 0x1003f0d0
mov ebx, dword [esp + 0x134]
mov eax, dword [esp + edi*8 + 0x38]
mov dword [ebx + 4], eax
pop edi
pop ebx
lea eax, [esp + 0x70]
push eax
call fcn.10012820
lea eax, [esp + 0xbc]
push eax
call fcn.10012820
lea eax, [esp + 0xd8]
push eax
call fcn.10012820
lea eax, [esp + 0x94]
push eax
call fcn.10011410
lea eax, [esp + 0xfc]
mov dword [esp + 0x7c], 0
push eax
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0
call fcn.10011410
lea eax, [esp + 0x28]
push eax
call fcn.10012820
lea eax, [esp + 0x64]
push eax
call fcn.10012820
lea eax, [esp + 0x48]
push eax
call fcn.10011020
lea eax, [esp + 0x5c]
push eax
call fcn.10011020
add esp, 0x24
mov eax, esi
pop esi
pop ebp
add esp, 0x114
ret