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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x100c2380]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
lea esi, [edi + 0x1fec]
mov dword [esp + 0x68], 0xffffffff
mov byte [esp + 0x6c], 0
mov ecx, dword [edi + 0x1fd0]
mov eax, dword [ecx + 0xc]
mov dword [esi], eax
mov eax, dword [ecx + 0x10]
mov dword [esi + 4], eax
mov eax, dword [ecx + 0x14]
mov dword [esi + 8], eax
mov ecx, dword [edi + 0x1fd0]
mov eax, dword [ecx + 0xc]
mov dword [edi + 0x1ff8], eax
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x1ffc], eax
mov eax, dword [ecx + 0x14]
mov dword [edi + 0x2000], eax
mov eax, dword [0x1013bea4]
mov ecx, dword [0x10141348]
add eax, 0xffffffc5
xor eax, 0x280eb30e
cmp dword [eax + ecx], 8
je 0x1003673f
mov edx, dword [0x10143318]
mov eax, dword [edx + 0x30]
test al, 2
je 0x1003673f
test byte [0x10141350], 1
jne 0x1003673f
cmp byte [0x1012fb34], 0
je 0x10036727
and eax, 0xfffffffd
mov dword [edx + 0x30], eax
mov ecx, dword [0x10141348]
cmp byte [0x1012fbbc], 0
je 0x1003673f
mov eax, dword [0x10143318]
or dword [eax + 0x30], 4
mov ecx, dword [0x10141348]
test ecx, ecx
je 0x100367cc
mov eax, dword [0x1013bea4]
add eax, 0xffffffc5
xor eax, 0x280eb30e
mov eax, dword [eax + ecx]
cmp eax, 8
je 0x100367cc
cmp eax, 9
je 0x100367cc
test dword [0x10143320], 0x20000
jne 0x100367cc
test byte [0x10143320], 2
je 0x100367cc
test byte [0x10141350], 1
jne 0x100367cc
cmp byte [0x1012fc44], 0
je 0x100367cc
mov eax, dword [0x1013be58]
add eax, 0xffffffd8
xor eax, 0x280eb2fb
movss xmm1, dword [eax + ecx + 4]
movss xmm0, dword [eax + ecx]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
call fcn.100205a0
comiss xmm0, dword [0x100b827c]
jb 0x100367cc
push esi
push dword [0x10143318]
call fcn.1008bb00
mov ecx, dword [0x10141348]
mov eax, dword [0x1013be58]
add eax, 0xffffffd8
mov dword [esp + 0x1c], 0
xor eax, 0x280eb2fb
movq xmm0, qword [eax + ecx]
mov eax, dword [eax + ecx + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [0x1012fff4]
movq qword [esp + 0x34], xmm0
cmp eax, 0xffffffff
je 0x100369bd
lea eax, [eax + eax*2]
mov al, byte [eax*4 + 0x10138c18]
test al, al
je 0x100369bd
mov eax, dword [0x1013bf5c]
add eax, 0xffffff97
xor eax, 0x280eb33c
mov eax, dword [eax + ecx]
mov ecx, dword [0x1013bc10]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 0x10]
mov edx, esp
mov dword [edx], eax
call esi
test eax, eax
je 0x100369bd
mov ecx, dword [0x1013bcc4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x18], eax
call dword [esp + 0x18]
mov ecx, dword [0x1013bf20]
mov eax, dword [0x10141348]
add ecx, 0xffffffa6
xor ecx, 0x280eb32d
cmp dword [0x101432e4], 0
fstp dword [esp + 0x18]
movss xmm0, dword [esp + 0x18]
mulss xmm0, dword [ecx + eax]
movss dword [esp + 0x14], xmm0
jle 0x10036989
movss xmm2, dword [esp + 0x3c]
movss xmm3, dword [esp + 0x38]
movss xmm4, dword [esp + 0x34]
movss dword [esp + 0x2c], xmm2
movss dword [esp + 0x30], xmm3
movss dword [esp + 0x18], xmm4
nop dword [eax + eax]
movaps xmm1, xmm4
movaps xmm0, xmm3
mulss xmm0, xmm3
mulss xmm1, xmm4
addss xmm0, xmm1
movaps xmm1, xmm2
mulss xmm1, xmm2
addss xmm0, xmm1
call fcn.100205a0
movss xmm1, dword [0x100b8140]
comiss xmm1, xmm0
movss dword [esp + 0x28], xmm0
jae 0x10036989
mov ecx, dword [0x1013bcd0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x24], eax
call dword [esp + 0x24]
movss xmm2, dword [esp + 0x28]
mov eax, dword [0x1013bc68]
movaps xmm1, xmm2
fstp dword [esp + 0x24]
movss xmm0, dword [esp + 0x24]
maxss xmm0, xmm2
movss xmm4, dword [esp + 0x18]
movss xmm3, dword [esp + 0x30]
mulss xmm0, dword [esp + 0x14]
mulss xmm0, dword [eax + 0x20]
subss xmm1, xmm0
maxss xmm1, dword [0x100b80ec]
ucomiss xmm1, xmm2
lahf
test ah, 0x44
jnp 0x1003696e
divss xmm1, xmm2
movss xmm2, dword [esp + 0x2c]
mulss xmm4, xmm1
mulss xmm3, xmm1
mulss xmm2, xmm1
movss dword [esp + 0x18], xmm4
movss dword [esp + 0x30], xmm3
movss dword [esp + 0x2c], xmm2
jmp 0x10036974
movss xmm2, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [0x101432e4]
jl 0x100368b0
mov eax, dword [0x1013bc7c]
mov ecx, dword [eax + 0x4cb0]
mov eax, 0xd
sub eax, ecx
cmp dword [esp + 0x1c], eax
jg 0x100369a5
test ecx, ecx
jne 0x100369bd
mov eax, dword [0x10143318]
mov dword [eax + 0x28], 0
mov eax, dword [0x10143318]
mov dword [eax + 0x24], 0
call fcn.1008c9e0
movss xmm1, dword [edi + 0x1ff0]
call fcn.1008c170
call fcn.1008c6a0
push dword [0x10143318]
mov ecx, 0x10139888
call fcn.10090e60
mov ecx, dword [0x10141348]
mov eax, dword [0x1013bdf8]
mov esi, dword [eax + ecx]
test esi, esi
je 0x10036bab
mov eax, dword [0x1013bf48]
add eax, 0xffffff9c
xor eax, 0x280eb337
movss xmm0, dword [eax + ecx + 0x30]
mov eax, dword [ecx]
movss dword [esp + 0x18], xmm0
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [0x1013bf48]
add ecx, 0xffffff9c
xor ecx, 0x280eb337
movq xmm0, qword [eax]
movq qword [esp + 0x70], xmm0
mov eax, dword [eax + 8]
mov dword [esp + 0x78], eax
mov eax, dword [0x10141348]
push 0x101433a8
mov dword [ecx + eax + 0x30], 0x3f000000
mov eax, dword [0x1013bd5c]
mov ecx, dword [0x10141348]
call eax
mov edx, dword [0x1013be50]
mov ecx, dword [0x10141348]
add edx, 0xffffffda
mov eax, dword [0x1013bd60]
xor edx, 0x280eb2f9
add edx, ecx
push edx
call eax
mov eax, dword [0x1013bea0]
mov edx, dword [0x10141348]
add eax, 0xffffffc6
xor eax, 0x280eb30d
test byte [eax + edx], 1
je 0x10036aa0
mov word [esi + 0x108], 1
mov edx, dword [0x10141348]
mov eax, dword [0x1013bdf8]
xorps xmm2, xmm2
xorps xmm0, xmm0
movss dword [esp + 0x34], xmm2
xorps xmm1, xmm1
movss dword [esp + 0x38], xmm0
movss dword [esp + 0x3c], xmm1
mov ecx, dword [edx + eax]
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x10036b65
movss xmm1, dword [ecx + 0xa4]
lea esi, [ecx + 0xa4]
mov al, byte [ecx + 0x238]
movss xmm0, dword [0x100b81bc]
comiss xmm1, xmm2
mov byte [ecx + 0x238], 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x23], al
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x3f666666
mov dword [esp + 0x14], 0
movss dword [esp + 0x24], xmm1
cmovae ecx, esi
comiss xmm0, xmm1
cmovae eax, ecx
lea ecx, [esp + 0x34]
push ecx
mov ecx, edx
mov eax, dword [eax]
mov dword [esi], eax
mov eax, dword [edx]
mov eax, dword [eax + 0x454]
call eax
mov ecx, dword [esp + 0x1c]
movss xmm0, dword [esp + 0x24]
mov al, byte [esp + 0x23]
movss dword [esi], xmm0
mov byte [ecx + 0x238], al
mov edx, dword [0x10141348]
movss xmm1, dword [esp + 0x3c]
movss xmm0, dword [esp + 0x38]
movss xmm2, dword [esp + 0x34]
mov eax, dword [0x1013bd60]
lea ecx, [esp + 0x70]
push ecx
mov ecx, edx
movss dword [0x10141358], xmm2
movss dword [0x1014135c], xmm0
movss dword [0x10141360], xmm1
call eax
mov ecx, dword [0x1013bf48]
mov eax, dword [0x10141348]
add ecx, 0xffffff9c
movss xmm0, dword [esp + 0x18]
xor ecx, 0x280eb337
movss dword [ecx + eax + 0x30], xmm0
mov ecx, dword [edi + 0x1fd0]
lea esi, [edi + 0x2004]
mov eax, dword [edi + 0x1fe0]
mov dword [ecx + 0xc], eax
mov eax, dword [edi + 0x1fe4]
mov dword [ecx + 0x10], eax
mov eax, dword [edi + 0x1fe8]
mov dword [ecx + 0x14], eax
movss xmm0, dword [edi + 0x1fe0]
mulss xmm0, dword [0x100b811c]
movss dword [esp + 0x28], xmm0
call fcn.10020580
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [edi + 0x1fe4]
mulss xmm0, dword [0x100b811c]
movss dword [esp + 0x14], xmm0
test esi, esi
je 0x10036c49
call fcn.10020580
mulss xmm0, dword [esp + 0x1c]
movss dword [esi], xmm0
movss xmm0, dword [esp + 0x14]
call fcn.10020590
mulss xmm0, dword [esp + 0x1c]
movss dword [esi + 4], xmm0
movss xmm0, dword [esp + 0x28]
call fcn.10020590
xorps xmm0, xmmword [0x100b8430]
movss dword [esi + 8], xmm0
mov eax, dword [edi]
mov dword [edi + 0x1f70], 0
mov dword [edi + 0x1f78], 0
mov dword [edi + 0x1f74], 0xffffffff
mov dword [edi + 0x1f7c], 0xffffffff
mov byte [edi + 0x1f80], 0
mov byte [edi + 0x1c], 0
mov ecx, dword [0x1013bf58]
add ecx, 0xffffff98
xor ecx, 0x280eb33b
mov eax, dword [ecx + eax]
mov ecx, dword [0x1013bc10]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 0x10]
mov edx, esp
mov dword [edx], eax
call esi
mov ecx, eax
mov dword [edi + 0x1f70], ecx
test ecx, ecx
je 0x10037111
mov eax, dword [ecx]
mov eax, dword [eax + 0x6f8]
call eax
mov esi, dword [edi + 0x1f70]
mov dword [edi + 0x1f78], eax
mov edx, dword [0x1013bf70]
add edx, 0xffffff92
xor edx, 0x280eb341
mov edx, dword [edx + esi]
mov dword [edi + 0x1f74], edx
mov eax, dword [eax + 0xc8]
mov dword [edi + 0x1f7c], eax
cmp eax, 9
je 0x10036cfd
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x75c]
call eax
mov eax, dword [edi + 0x1f74]
cmp eax, 9
je 0x10036d1b
cmp eax, 0xb
je 0x10036d1b
cmp eax, 0x26
je 0x10036d1b
cmp eax, 0x28
je 0x10036d1b
xor dl, dl
jmp 0x10036d1d
mov dl, 1
mov esi, dword [0x10141348]
mov dword [0x10139898], 0
cmp dword [edi + 0x1f74], 0x28
jne 0x10036d55
mov eax, dword [0x1013bea0]
add eax, 0xffffffc6
xor eax, 0x280eb30d
test byte [eax + esi], 1
jne 0x10036d55
mov dword [0x10139898], 0x3c0f5c29
jmp 0x10036da4
mov eax, dword [0x1013bea0]
mov ecx, dword [edi + 0x1f78]
add eax, 0xffffffc6
xor eax, 0x280eb30d
test byte [eax + esi], 2
je 0x10036d86
test dl, dl
je 0x10036d7c
movss xmm0, dword [ecx + 0x140]
jmp 0x10036d9c
movss xmm0, dword [ecx + 0x13c]
jmp 0x10036d9c
test dl, dl
je 0x10036d94
movss xmm0, dword [ecx + 0x148]
jmp 0x10036d9c
movss xmm0, dword [ecx + 0x144]
movss dword [0x10139898], xmm0
mov eax, dword [edi + 0x1f7c]
test eax, eax
je 0x10036e41
cmp eax, 7
je 0x10036e41
cmp eax, 9
je 0x10036e41
mov eax, dword [edi]
lea edx, [esp + 0x60]
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x40]
mov eax, dword [edi + 0x1f78]
mov dword [esp + 0x44], 0
movss xmm1, dword [eax + 0x104]
movaps xmm0, xmm1
mov dword [esp + 0x54], 0x3f800000
mulss xmm0, dword [edi + 0x2004]
mov dword [esp + 0x58], 0x3f800000
mov byte [esp + 0x5c], 1
addss xmm0, dword [edi + 0x10]
movss dword [esp + 0x48], xmm0
movaps xmm0, xmm1
mulss xmm0, dword [edi + 0x2008]
mulss xmm1, dword [edi + 0x200c]
addss xmm0, dword [edi + 0x14]
addss xmm1, dword [edi + 0x18]
movss dword [esp + 0x4c], xmm0
movss dword [esp + 0x50], xmm1
call fcn.1008f570
movups xmm0, xmmword [esp + 0x60]
mov ecx, dword [edi]
movups xmmword [edi + 0x2010], xmm0
mov edx, dword [0x1013bee0]
mov eax, dword [0x1013bc68]
add edx, 0xffffffb6
xor edx, 0x280eb31d
movss xmm0, dword [eax + 0x10]
comiss xmm0, dword [edx + ecx]
jb 0x10036e9f
mov ecx, dword [0x1013bc0c]
mov esi, dword [0x1013bc94]
mov eax, dword [ecx]
mov eax, dword [eax + 0x68]
call eax
test al, al
je 0x10036e92
mov eax, dword [esi]
test eax, eax
je 0x10036e92
mov al, byte [eax + 0x20]
test al, al
jne 0x10036e9f
test byte [0x10141350], 0x40
jne 0x10036e9f
mov cl, 1
jmp 0x10036ea1
xor cl, cl
mov esi, dword [edi + 0x1f84]
mov byte [edi + 0x1c], cl
mov byte [edi + 0x1f8c], 0
cmp esi, 0xffffffff
jne 0x10036ec2
mov dword [edi + 0x1f84], 0
xor esi, esi
cmp dword [edi + 0x1f74], 0x40
jne 0x10036fb0
mov eax, dword [0x1013bf74]
mov edx, dword [edi + 0x1f70]
add eax, 0xffffff91
xor eax, 0x280eb342
cmp dword [eax + edx], 1
jl 0x10036fb0
test cl, cl
je 0x10036fb0
mov eax, dword [0x1013bf88]
add eax, 0xffffff8c
xor eax, 0x280eb347
movss xmm0, dword [eax + edx]
mov eax, dword [0x1013bc68]
comiss xmm0, dword [eax + 0x10]
ja 0x10036fb0
movss xmm0, dword [eax + 0x20]
mulss xmm0, dword [0x100b835c]
push ecx
movss dword [esp + 0x18], xmm0
fld dword [esp + 0x18]
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm0, dword [0x100b83cc]
add esp, 4
fstp dword [esp + 0x14]
divss xmm0, dword [esp + 0x14]
cvttss2si eax, xmm0
not eax
mov dword [edi + 0x1f88], eax
cmp eax, esi
jne 0x10036f6d
mov dword [edi + 0x1f84], 0xffffffff
mov byte [edi + 0x1f8c], 1
jmp 0x10036fc4
cmp dword [0x101386d8], 0
jne 0x10036f84
cmp eax, esi
jle 0x10036f84
mov eax, dword [edi + 0x1fd0]
or dword [eax + 0x30], 1
mov eax, dword [edi + 0x1fd0]
test byte [eax + 0x30], 1
je 0x10036fba
mov eax, dword [edi + 0x1f84]
inc eax
mov dword [edi + 0x1f84], eax
test eax, eax
jle 0x10036fc4
mov eax, dword [edi + 0x1fd0]
and dword [eax + 0x30], 0xfffff7ff
jmp 0x10036fc4
mov dword [edi + 0x1f88], 0
mov dword [edi + 0x1f84], 0
mov eax, dword [0x1013bedc]
mov esi, dword [0x10141348]
add eax, 0xffffffb7
mov ecx, dword [0x1013bc68]
xor eax, 0x280eb31c
mov edx, dword [0x1013bf88]
movd xmm1, dword [eax + esi]
movss xmm2, dword [ecx + 0x10]
mov eax, dword [0x101432b8]
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [ecx + 0x20]
lea ecx, [edx - 0x74]
xor ecx, 0x280eb347
movss xmm0, dword [ecx + eax]
comiss xmm0, xmm1
jbe 0x10037014
xor al, al
jmp 0x1003710b
mov eax, dword [0x1013bee0]
add eax, 0xffffffb6
xor eax, 0x280eb31d
movss xmm0, dword [eax + esi]
comiss xmm0, xmm1
jbe 0x10037032
xor al, al
jmp 0x1003710b
cmp byte [edi + 0x1c], 0
jne 0x1003703f
xor al, al
jmp 0x1003710b
mov eax, dword [edi + 0x1f7c]
cmp eax, 9
jne 0x10037051
xor al, al
jmp 0x1003710b
test eax, eax
je 0x10037077
mov ecx, dword [0x1013bf74]
mov eax, dword [edi + 0x1f70]
add ecx, 0xffffff91
xor ecx, 0x280eb342
cmp dword [ecx + eax], 1
jge 0x10037077
xor al, al
jmp 0x1003710b
mov ecx, dword [edi + 0x1f74]
cmp ecx, 4
je 0x10037087
cmp ecx, 0xa
jne 0x100370b7
mov eax, dword [0x1013bf84]
mov esi, dword [edi + 0x1f70]
add eax, 0xffffff8d
xor eax, 0x280eb346
cmp dword [eax + esi], 0
jle 0x100370b7
mov eax, dword [0x1013bf98]
add eax, 0xffffff88
xor eax, 0x280eb34b
comiss xmm2, dword [eax + esi]
jb 0x100370b7
mov al, 1
jmp 0x1003710b
cmp ecx, 0x40
jne 0x100370f6
mov eax, dword [0x1013bf7c]
mov ecx, dword [edi + 0x1f70]
add eax, 0xffffff8f
xor eax, 0x280eb344
cmp byte [edi + 0x1f8c], 0
mov eax, dword [eax + ecx]
jne 0x100370f6
cmp eax, 0xb9
je 0x100370e9
cmp eax, 0xc1
jne 0x100370f2
cmp dword [edi + 0x1f84], 0
je 0x100370fc
xor al, al
jmp 0x1003710b
mov ecx, dword [edi + 0x1f70]
lea eax, [edx - 0x74]
xor eax, 0x280eb347
comiss xmm2, dword [eax + ecx]
setae al
mov byte [edi + 0x1f80], al
mov eax, dword [0x101376a0]
cmp eax, 0xffffffff
je 0x100371b4
lea eax, [eax + eax*2]
mov al, byte [eax*4 + 0x10138c18]
test al, al
je 0x100371b4
cmp byte [0x101412a0], 0
je 0x100371b4
mov ecx, dword [0x1013beb4]
mov eax, dword [edi]
add ecx, 0xffffffc1
xor ecx, 0x280eb312
cmp byte [ecx + eax], 0
je 0x1003715b
movss xmm0, dword [0x100b8228]
jmp 0x10037163
movss xmm0, dword [0x100b8240]
mov eax, dword [0x1013bc68]
movss xmm1, dword [0x101412a8]
subss xmm1, dword [eax + 0x10]
mov eax, dword [edi + 0x1fd0]
subss xmm1, xmm0
movss xmm0, dword [0x10143300]
mulss xmm0, dword [0x100b819c]
and dword [eax + 0x30], 0xffffffdf
mov eax, dword [0x1013bc68]
subss xmm1, xmm0
movss xmm0, dword [eax + 0x20]
addss xmm0, xmm0
comiss xmm0, xmm1
jb 0x100371b4
mov eax, dword [edi + 0x1fd0]
or dword [eax + 0x30], 0x20
mov ecx, dword [0x1013bc0c]
mov esi, dword [0x1013bc94]
mov eax, dword [ecx]
mov eax, dword [eax + 0x68]
call eax
test al, al
je 0x100371dc
mov eax, dword [esi]
test eax, eax
je 0x100371dc
mov al, byte [eax + 0x20]
test al, al
jne 0x10037303
test byte [0x10141350], 0x40
jne 0x10037303
cmp byte [0x1014134c], 0
je 0x10037303
mov eax, dword [0x10146494]
mov dword [0x101464b4], 0
mov dword [0x101464b8], 0
mov dword [0x101464bc], 0
mov dword [0x101464cc], 0
mov dword [0x101464d0], 0
mov dword [0x101464d4], 0
mov dword [0x101464c0], 0
mov dword [0x101464c4], 0
mov dword [0x101464c8], 0
mov dword [0x101464ac], 0
mov dword [0x101464b0], 0
cmp eax, dword [0x10146498]
je 0x10037276
mov dword [0x10146498], eax
mov eax, dword [0x101464a0]
cmp eax, dword [0x101464a4]
je 0x10037288
mov dword [0x101464a4], eax
cmp byte [0x1012f1bc], 0
je 0x100372f4
cmp dword [0x101432c4], 9
jne 0x100372f4
mov eax, dword [0x10143318]
test byte [eax + 0x30], 1
jne 0x100372af
mov eax, dword [eax + 0x30]
shr eax, 0xb
test al, 1
je 0x100372f4
mov ecx, dword [0x1013bf94]
mov eax, dword [0x101432bc]
add ecx, 0xffffff89
mov dword [0x10146490], eax
xor ecx, 0x280eb34a
mov eax, dword [0x101432b8]
movss xmm0, dword [ecx + eax]
mov eax, dword [0x101432c0]
movss dword [0x101464b0], xmm0
movss xmm0, dword [eax + 0x10c]
movss dword [0x101464ac], xmm0
call fcn.1007b7e0
call fcn.100827d0
call fcn.10023690
call fcn.100822e0
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
xor ecx, esp
call fcn.100a2d7c
mov esp, ebp
pop ebp
ret