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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1025a56c
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x20], esi
mov edx, dword [esi + 0x88]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x38], edi
mov dword [esp + 0x24], ecx
test edx, edx
jne 0x1012fe16
and dword [edi], 0
and dword [edi + 4], 0
mov eax, edi
jmp 0x101303a9
lea ebx, [esi + 0x60]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x1012fe08
cmp dword [edx + 0x6d8], 0
mov eax, dword [edx + 0x6dc]
mov dword [esp + 0x28], eax
jne 0x1012fe38
test eax, eax
je 0x1012fe08
push ebx
lea eax, [esp + 0x40]
push eax
call fcn.1008c131
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x140]
xor ebx, ebx
test eax, eax
jne 0x1012fe67
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x254]
test eax, eax
jne 0x1012fe67
mov dword [esp + 0x2c], ebx
jmp 0x1012feda
lea eax, [esp + 0x80]
push eax
call fcn.100ec21f
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1012feda
call fcn.1008b6ce
cmp dword [eax + 0x1e4], ebx
je 0x1012fe99
fld qword [eax + 0x1dc]
fld1
jmp 0x1012fe9f
fld1
fld st(0)
fxch st(1)
fcompp
fnstsw ax
test ah, 5
jp 0x1012feda
call fcn.1008b6ce
cmp dword [eax + 0x1e4], ebx
je 0x1012febd
fld qword [eax + 0x1dc]
jmp 0x1012febf
fld1
fild dword [esp + 0x1c]
fstp qword [esp + 0x2c]
fmul qword [esp + 0x2c]
fadd qword [0x10041fe8]
call fcn.10282c27
mov dword [esp + 0x2c], eax
cmp dword [ebp + 0x10], ebx
je 0x1013008c
or dword [esi + 0x154], 0xffffffff
mov eax, dword [esi + 0x1a4]
test eax, eax
jne 0x1012fefd
mov ecx, dword [esp + 0x3c]
jmp 0x1013006b
mov ecx, 0x7fff
mov edx, ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x20], edx
test eax, eax
jle 0x1013006b
lea eax, [esi + 0x19c]
mov edi, ecx
push edx
mov ecx, eax
call fcn.10091046
lea ecx, [esi + 0x60]
mov eax, dword [eax]
push eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
call fcn.100915c3
mov dword [esp + 0xc8], ebx
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x254]
test eax, eax
jne 0x1012ff7e
push 0x100052cc
push 0x100052d0
lea ecx, [esp + 0x1c]
call fcn.1009135a
push 0x26
lea ecx, [esp + 0x18]
call fcn.100912da
push 0x100052d4
push 0x100052cc
lea ecx, [esp + 0x1c]
call fcn.1009135a
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.1008c131
lea ecx, [esi + 0x60]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
inc eax
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.1009170d
mov byte [esp + 0xc8], 1
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x254]
test eax, eax
jne 0x1012fff1
push 0x100052cc
push 0x100052d0
lea ecx, [esp + 0x20]
call fcn.1009135a
push 0x26
lea ecx, [esp + 0x1c]
call fcn.100912da
push 0x100052d4
push 0x100052cc
lea ecx, [esp + 0x20]
call fcn.1009135a
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x74]
push eax
call fcn.1008c131
mov ecx, dword [eax]
add ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jg 0x10130014
mov eax, ecx
cmp eax, edi
jge 0x10130024
mov edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x154], eax
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.10086faa
or dword [esp + 0xc8], 0xffffffff
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.10086faa
mov edx, dword [esp + 0x20]
lea eax, [esi + 0x19c]
inc edx
mov dword [esp + 0x20], edx
cmp edx, dword [esi + 0x1a4]
jl 0x1012ff1c
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
mov eax, ecx
and eax, 0x80000001
jns 0x10130079
dec eax
or eax, 0xfffffffe
inc eax
je 0x1013007c
dec ecx
mov eax, dword [esp + 0x40]
add eax, eax
mov dword [edi], ecx
mov dword [edi + 4], eax
jmp 0x1012fe0f
mov edi, dword [esp + 0x28]
mov ecx, esi
mov eax, dword [esi]
add edi, 6
add edi, dword [esi + 0x78]
mov dword [esp + 0x14], edi
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
call dword [eax + 0x254]
test eax, eax
je 0x101300cb
add edi, 2
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x14]
lea esi, [esi + 0x74]
lea edi, [esp + 0x98]
movsd dword es:[edi], dword [esi]
push 0x21
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x24]
mov ecx, esi
mov dword [esp + 0xa0], eax
pop edi
mov dword [esp + 0x18], edi
mov eax, dword [esi]
call dword [eax + 0x254]
test eax, eax
je 0x10130106
mov edi, 0x821
mov dword [esp + 0x18], edi
mov eax, dword [esi + 0x154]
cmp eax, 0xffffffff
jne 0x1013019c
mov eax, dword [esi + 0x60]
mov ecx, dword [esp + 0x24]
push edi
lea edi, [esp + 0x9c]
push edi
push dword [eax - 0xc]
mov edx, dword [ecx]
push eax
call dword [edx + 0x70]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x140]
test eax, eax
jne 0x1013014e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x254]
test eax, eax
je 0x101302bd
mov eax, dword [esp + 0x40]
lea edx, [esi + 0x74]
mov esi, edx
lea edi, [esp + 0x88]
add eax, 2
add eax, dword [esp + 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x8c], eax
mov eax, dword [edx + 8]
add eax, dword [edx]
cdq
sub eax, edx
mov esi, eax
lea eax, [esp + 0x58]
push eax
sar esi, 1
call fcn.100ec21f
mov eax, dword [eax]
cdq
sub eax, edx
sar eax, 1
sub esi, eax
dec esi
mov dword [esp + 0x88], esi
jmp 0x101302bd
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esi + 0x60]
call fcn.100915c3
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x98]
mov dword [esp + 0xc8], 2
push dword [esp + 0x18]
mov ebx, dword [esp + 0x48]
mov eax, dword [edi]
push ecx
mov ecx, edi
push dword [ebx - 0xc]
push ebx
call dword [eax + 0x70]
mov eax, dword [esp + 0x40]
lea ecx, [esi + 0x60]
add eax, dword [esp + 0x14]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x2c]
sub dword [esp + 0xa0], eax
mov eax, dword [esi + 0x154]
inc eax
push eax
lea eax, [esp + 0x20]
push eax
call fcn.1009170d
mov byte [esp + 0xc8], 3
lea ecx, [esp + 0x98]
push dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov edx, dword [edi]
push ecx
mov ecx, edi
push dword [eax - 0xc]
push eax
call dword [edx + 0x70]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x140]
test eax, eax
jne 0x10130242
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x254]
test eax, eax
je 0x1013029f
mov eax, dword [esp + 0x9c]
lea esi, [esp + 0x98]
mov ecx, dword [esp + 0x24]
lea edi, [esp + 0x88]
movsd dword es:[edi], dword [esi]
add eax, 2
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0xa0]
sub esi, dword [esp + 0x98]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.1008c131
mov ecx, dword [esp + 0xa0]
sub esi, dword [eax]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.10086faa
or dword [esp + 0xc8], 0xffffffff
lea ecx, [ebx - 0x10]
call fcn.10086faa
xor ebx, ebx
lea eax, [esp + 0x88]
push eax
call dword [0x102aba94]
test eax, eax
jne 0x101303a0
lea eax, [esp + 0x68]
push eax
call fcn.100ec21f
lea esi, [esp + 0x88]
lea edi, [esp + 0xa8]
push 1
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x90]
add eax, ecx
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x8c]
add eax, dword [esp + 0x30]
mov dword [esp + 0x94], eax
lea eax, [esp + 0xac]
movsd dword es:[edi], dword [esi]
push ebx
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [0x102ababc]
call fcn.1008b6ce
cmp dword [eax + 0x1e4], ebx
je 0x1013033c
fld qword [eax + 0x1dc]
fld1
jmp 0x10130342
fld1
fld st(0)
fxch st(1)
fcompp
fnstsw ax
test ah, 5
jp 0x10130350
push 0xd
pop edi
jmp 0x10130352
mov edi, ebx
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x48]
push eax
push 3
lea eax, [esp + 0xb0]
mov dword [esp + 0x50], ebx
push eax
push edi
push esi
mov dword [esp + 0x60], ebx
call fcn.100ec341
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x50]
push eax
xor eax, eax
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
cmp dword [ecx + 0xd4], ebx
setne al
push eax
lea eax, [esp + 0x90]
push eax
push edi
push esi
call fcn.100ec341
mov eax, dword [esp + 0x38]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.1028105c
mov esp, ebp
pop ebp
ret 0xc