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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x100478be
mov eax, dword fs:[0]
push eax
sub esp, 0x89c
mov eax, dword [0x100600f0]
xor eax, esp
mov dword [esp + 0x894], eax
push esi
push edi
mov eax, dword [0x100600f0]
xor eax, esp
push eax
lea eax, [esp + 0x8a8]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x24], 0
test ecx, ecx
jne 0x10013570
test eax, 0x400
je 0x10013e29
mov byte [esp + 0x17], 0
test eax, eax
jns 0x10013586
and eax, 0x7fffffff
mov byte [esp + 0x17], 1
mov dword [ebp + 0x18], eax
test ecx, ecx
je 0x100135a0
mov eax, dword [ecx]
push 0
push 0x59555678
mov eax, dword [eax + 0x20]
call eax
test eax, eax
jne 0x10013bd6
test dword [edi + 0x1c], 0x400
je 0x100135e6
cmp dword [edi + 0xa48], 0
je 0x100135e6
cmp byte [esp + 0x17], 0
jne 0x100135e6
call fcn.10013420
test eax, eax
jne 0x100135e6
mov eax, dword [ebp + 0x18]
test eax, 0x40000000
jne 0x100135e6
mov ecx, dword [edi + 0x1c]
test cl, 4
jne 0x100135e6
test ecx, 0x1f3
jne 0x100135e6
cmp dword [edi + 0x24], 0
je 0x100135f3
test al, 0x20
jne 0x100135f3
cmp dword [edi + 0x20], 0x100
jl 0x10013bd6
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.10013480
test eax, eax
je 0x100136bc
push 0
push 0
push dword [ebp + 0x10]
push esi
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [esp + 0x48], eax
cmp eax, 0x3e8
jge 0x10013667
push 0x400
lea eax, [esp + 0xa0]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push 8
push 0xfde9
call eax
mov ecx, eax
test ecx, ecx
je 0x100136bc
lea eax, [esp + 0x9c]
mov dword [esp + 0x3c], eax
xor eax, eax
mov word [esp + ecx*2 + 0x9c], ax
jmp 0x100136bc
lea eax, [eax*2 + 0x40]
push eax
call fcn.1002c080
mov edx, eax
add esp, 4
mov dword [esp + 0x3c], edx
test edx, edx
je 0x100136bc
mov eax, dword [esp + 0x48]
inc eax
push eax
mov eax, dword [ebp + 0x10]
push edx
push eax
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push 8
push 0xfde9
call eax
mov ecx, eax
test ecx, ecx
jne 0x100136b0
mov eax, dword [esp + 0x3c]
push eax
call fcn.1002c048
add esp, 4
jmp 0x100136bc
jle 0x100136bc
mov eax, dword [esp + 0x3c]
xor edx, edx
mov word [eax + ecx*2], dx
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x100136cd
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
jmp 0x100136cf
xor eax, eax
mov dword [esp + 0xc], eax
xorps xmm0, xmm0
movdqa xmmword [esp + 0x74], xmm0
mov byte [esp + 0x17], 0
movdqu xmmword [esp + 0x54], xmm0
test eax, eax
jne 0x10013a53
mov ecx, dword [0x10062a94]
mov byte [esp + 0x17], 1
test ecx, ecx
jne 0x1001373d
push 0x24
call fcn.1002cd06
add esp, 4
mov dword [esp + 0x48], eax
mov dword [esp + 0x8b0], 0
test eax, eax
je 0x1001372a
push 0
push 0
mov ecx, eax
call fcn.1000f3d0
mov ecx, eax
jmp 0x1001372c
xor ecx, ecx
mov dword [esp + 0x8b0], 0xffffffff
mov dword [0x10062a94], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
cmp eax, 4
jl 0x1001375b
mov ecx, dword [0x10062a94]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
cmp eax, 4
jge 0x1001376a
mov ecx, dword [0x10062a94]
push 4
push 4
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [0x10062a94]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov dword [esp + 0xc], eax
test eax, eax
je 0x10013bb5
push dword [edi + 0xa48]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x3c]
xorps xmm0, xmm0
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x18]
and eax, 0xfffffff0
or eax, 0xc00
push eax
lea eax, [esp + 0x90]
movdqu xmmword [esp + 0x90], xmm0
push eax
test ecx, ecx
je 0x100137cb
push 0xffffffffffffffff
push ecx
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_DrawTextW]
jmp 0x100137d9
push dword [ebp + 0x10]
push esi
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x24], eax
test ecx, 0x400
je 0x10013818
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx]
sub eax, dword [esp + 0x8c]
add eax, dword [esp + 0x94]
mov dword [ecx + 8], eax
mov eax, dword [ecx + 4]
sub eax, dword [esp + 0x90]
add eax, dword [esp + 0x98]
mov dword [ecx + 0xc], eax
jmp 0x10013ba2
cmp dword [esp + 0x18], 0
je 0x10013ba2
mov edx, dword [esp + 0x4c]
test cl, 2
je 0x10013838
mov eax, dword [edx + 8]
sub eax, dword [esp + 0x94]
jmp 0x10013856
test cl, 1
je 0x10013854
mov eax, dword [edx + 8]
sub eax, dword [esp + 0x94]
add eax, dword [edx]
cdq
sub eax, edx
mov edx, dword [esp + 0x4c]
sar eax, 1
jmp 0x10013856
mov eax, dword [edx]
mov esi, dword [esp + 0x98]
mov dword [esp + 0x44], eax
mov dword [esp + 0x54], eax
add eax, dword [esp + 0x94]
mov dword [esp + 0x50], eax
mov dword [esp + 0x5c], eax
test cl, 8
je 0x10013880
mov eax, dword [edx + 0xc]
sub eax, esi
jmp 0x10013897
test cl, 4
je 0x10013894
mov eax, dword [edx + 0xc]
add eax, dword [edx + 4]
sub eax, esi
cdq
sub eax, edx
sar eax, 1
jmp 0x10013897
mov eax, dword [edx + 4]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x58], eax
add eax, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x60], eax
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov esi, dword [esp + 0x40]
cmp dword [esp + 0x50], eax
jle 0x100138d1
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x18]
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
call edx
cmp dword [esp + 0x10], eax
jle 0x100138f7
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x18]
xor ecx, ecx
mov dword [esp + 0x40], ecx
test eax, 0x100
jne 0x1001394b
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x10]
cmp eax, dword [edx + 8]
cmovg eax, dword [edx + 8]
cmp ecx, dword [edx + 0xc]
mov dword [esp + 0x50], eax
cmovg ecx, dword [edx + 0xc]
mov dword [esp + 0x5c], eax
mov eax, dword [edx]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x60], ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
mov eax, dword [edx + 4]
xor edx, edx
test eax, eax
cmovg edx, eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x44]
cmp edx, ecx
jge 0x10013963
sub edx, ecx
mov dword [esp + 0x74], edx
mov edx, ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x54], edx
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x40]
jge 0x10013981
sub ecx, dword [esp + 0x40]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x58], ecx
cmp dword [esp + 0x10], ecx
jle 0x10013ba2
mov ecx, dword [esp + 0x50]
cmp ecx, edx
jle 0x10013ba2
sub ecx, edx
and eax, 0xfffffef0
mov dword [esp + 0x24], ecx
mov ecx, dword [0x10062a94]
mov dword [ebp + 0x18], eax
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
cmp dword [esp + 0x24], eax
jg 0x100139d1
mov ecx, dword [0x10062a94]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [esp + 0x10]
sub ecx, dword [esp + 0x1c]
cmp ecx, eax
jle 0x10013a19
push dword [esp + 0x20]
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [0x10062a94]
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x1c]
push eax
mov edx, dword [ecx]
push dword [esp + 0x28]
call dword [edx + 0x18]
mov ecx, dword [0x10062a94]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
push dword [edi + 0xa48]
mov dword [esp + 0x10], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x54]
push 0
push ecx
mov ecx, dword [0x10062a94]
mov dword [esp], 0x3f800000
push eax
push 0
push 0
call fcn.1000f670
mov ecx, dword [esp + 0x64]
add esp, 0x14
mov eax, dword [esp + 0x10]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
jmp 0x10013a92
push dword [edi + 0xa48]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x4c]
movdqu xmm0, xmmword [eax]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x54]
movdqu xmmword [esp + 0x74], xmm0
mov dword [esp + 0x44], eax
movzx ecx, byte [edi + 4]
movzx eax, byte [edi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 6]
shl ecx, 8
or ecx, eax
push ecx
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [edi + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp dword [edi + 0x10], 2
jne 0x10013ae7
movzx ecx, byte [edi + 8]
movzx eax, byte [edi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0xa]
shl ecx, 8
or ecx, eax
push ecx
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x10013b0e
mov esi, dword [ebp + 0x18]
mov eax, esi
or eax, 0x800
push eax
lea eax, [esp + 0x78]
push eax
push 0xffffffffffffffff
push ecx
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_DrawTextW]
jmp 0x10013b2d
mov eax, dword [ebp + 0x18]
or eax, 0x800
push eax
lea eax, [esp + 0x78]
push eax
push dword [ebp + 0x10]
push esi
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_DrawTextA]
mov esi, dword [ebp + 0x18]
cmp byte [esp + 0x17], 0
mov dword [esp + 0x24], eax
je 0x10013b8c
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x10]
sub eax, edx
movss xmm0, dword [edi + 0x18]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x1c]
sub ecx, eax
push 0
push ecx
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x5c]
movss dword [esp], xmm0
push ecx
mov ecx, dword [esp + 0x24]
push eax
push edx
mov edx, dword [0x10062a94]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
call fcn.1000f670
add esp, 0x14
jmp 0x10013ba2
test esi, 0x400
je 0x10013ba2
mov eax, dword [esp + 0x4c]
movdqu xmm0, xmmword [esp + 0x74]
movdqu xmmword [eax], xmm0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10013bb5
push dword [esp + 0x20]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x9c]
cmp eax, ecx
je 0x10013bcd
push eax
call fcn.1002c048
add esp, 4
mov eax, dword [esp + 0x24]
jmp 0x10014294
mov eax, dword [ebp + 0x18]
test eax, 0x400
je 0x10013ddc
mov eax, dword [esp + 0x40]
xor edx, edx
xor esi, esi
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edx
cmp byte [eax], dl
je 0x10013db5
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x10013db5
lea edx, [esp + 0x20]
mov dword [esp + 0x20], 0x20
mov ecx, eax
call fcn.10012010
add dword [esp + 0x40], eax
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x10013c48
sub ecx, eax
mov eax, 0
cmovs ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
cmp ax, 0xd
je 0x10013dd6
cmp ax, 0xa
jne 0x10013c73
test byte [ebp + 0x18], 0x20
je 0x10013d38
mov eax, 0x20
mov dword [esp + 0x20], eax
push eax
mov ecx, edi
call fcn.10012c60
mov esi, eax
test esi, esi
jne 0x10013cc9
push dword [esp + 0x20]
mov esi, dword [edi + 0xa30]
mov ecx, edi
call fcn.100124c0
mov eax, 0xcccccccd
mul dword [edi + 0xa30]
mov eax, 0xcccccccd
mov ecx, edx
mul esi
shr ecx, 4
shr edx, 4
cmp ecx, edx
je 0x10013d9c
push dword [esp + 0x20]
mov ecx, edi
call fcn.10012c60
mov esi, eax
test esi, esi
je 0x10013d9c
mov eax, dword [esi]
test eax, eax
js 0x10013d9c
jne 0x10013ce0
push dword [esp + 0x20]
mov ecx, edi
call fcn.100124c0
cmp dword [esi], 0
mov edx, dword [esp + 0x18]
jle 0x10013da0
test byte [edi + 0x1c], 1
je 0x10013d64
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x44]
add eax, ecx
add ecx, dword [esi + 0xc]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 4]
add eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
cmp eax, esi
mov dword [esp + 0x44], ecx
cmovg esi, eax
mov eax, dword [esp + 0x48]
cmp ecx, edx
mov dword [esp + 0x1c], esi
cmovg edx, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], edx
cmp eax, edx
jle 0x10013da8
mov edx, eax
mov dword [esp + 0x18], edx
jmp 0x10013da8
mov eax, dword [edi + 0x24]
add eax, dword [edi + 0x20]
test byte [edi + 0x1c], 1
mov edx, dword [esp + 0x18]
je 0x10013d56
add dword [esp + 0x3c], eax
mov dword [esp + 0x44], 0
jmp 0x10013da8
add dword [esp + 0x44], eax
mov dword [esp + 0x3c], 0
jmp 0x10013da8
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x3c]
add ecx, eax
add eax, dword [esi + 0xc]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 8]
add eax, dword [esp + 0x44]
mov esi, dword [esp + 0x1c]
cmp eax, edx
cmovg edx, eax
cmp dword [esp + 0x3c], esi
mov dword [esp + 0x18], edx
cmovg esi, dword [esp + 0x3c]
cmp ecx, esi
cmovg esi, ecx
mov dword [esp + 0x1c], esi
jmp 0x10013da4
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
cmp byte [eax], 0
jne 0x10013c13
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax]
add ecx, esi
mov dword [eax + 8], ecx
mov ecx, dword [eax + 4]
add ecx, edx
mov dword [eax + 0xc], ecx
test byte [edi + 0x1c], 1
cmovne edx, esi
mov eax, edx
jmp 0x10014294
mov edx, dword [esp + 0x18]
jmp 0x10013da8
movss xmm2, dword [edi + 0x18]
movss dword [esp + 0x50], xmm2
test eax, 0x40000000
je 0x10013e12
movzx eax, byte [edi + 7]
cvtps2pd xmm0, xmm2
movd xmm1, eax
cvtdq2pd xmm1, xmm1
divsd xmm1, qword [0x100524b8]
mulsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss dword [edi + 0x18], xmm0
movss xmm0, dword [edi + 0x18]
ucomiss xmm0, dword [0x1005240c]
lahf
test ah, 0x44
jp 0x10013e30
movss dword [edi + 0x18], xmm2
xor eax, eax
jmp 0x10014294
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x48], 1
movdqu xmm0, xmmword [eax]
mov al, byte [edi + 0x1c]
and al, 3
movd ecx, xmm0
movdqa xmmword [esp + 0x64], xmm0
psrldq xmm0, 4
movd edx, xmm0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], ecx
mov esi, edx
mov dword [esp + 0x20], edx
xor dl, dl
mov dword [esp + 0xc], esi
cmp al, 3
movzx edx, dl
mov eax, dword [ebp + 0x18]
cmove edx, dword [esp + 0x48]
mov dword [esp + 0x44], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x3c], edx
test al, 0xf
je 0x1001400d
xor ecx, ecx
mov dword [esp + 0x48], 0x80000000
cmp byte [esp + 0x17], cl
xorps xmm0, xmm0
movdqu xmmword [esp + 0x74], xmm0
cmovne ecx, dword [esp + 0x48]
and eax, 0x20
or ecx, eax
lea eax, [esp + 0x74]
or ecx, 0x400
push ecx
mov ecx, dword [esp + 0x44]
push eax
push edx
push ecx
push dword [esp + 0x28]
mov ecx, edi
call fcn.10013500
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x24], ecx
test al, 1
je 0x10013ef7
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x7c]
sub eax, ecx
mov ecx, dword [esp + 0x10]
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], ecx
jmp 0x10013f0d
test al, 2
je 0x10013f09
mov ecx, dword [esp + 0x6c]
sub ecx, dword [esp + 0x7c]
mov dword [esp + 0x10], ecx
jmp 0x10013f0d
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x20], edx
test al, 4
je 0x10013fef
mov eax, dword [esp + 0x70]
sub eax, dword [esp + 0x80]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add esi, eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0xc], esi
mov edx, dword [esp + 0x80]
cmp byte [esp + 0x44], 0
je 0x10013f4c
add esi, edx
mov dword [esp + 0xc], esi
mov edx, dword [esp + 0x20]
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
test eax, 0x100
jne 0x10014079
mov eax, dword [esp + 0x24]
xor ecx, ecx
test eax, eax
cmovs eax, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x64], eax
xor eax, eax
test edx, edx
cmovs edx, eax
mov eax, dword [ecx]
mov dword [esp + 0x68], edx
mov eax, dword [eax + 8]
call eax
cmp dword [esp + 0x6c], eax
jle 0x10013fa5
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov edx, dword [esp + 0x70]
cmp edx, eax
jle 0x10013fc9
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov edx, eax
mov dword [esp + 0x70], edx
mov ecx, dword [esp + 0x6c]
cmp ecx, dword [esp + 0x64]
jle 0x10013fdd
cmp edx, dword [esp + 0x68]
jg 0x100140a7
movss xmm0, dword [esp + 0x50]
xor eax, eax
movss dword [edi + 0x18], xmm0
jmp 0x10014294
test al, 8
je 0x10013f38
mov esi, dword [esp + 0x70]
mov edx, dword [esp + 0x80]
sub esi, edx
mov dword [esp + 0xc], esi
jmp 0x10013f3f
cmp byte [esp + 0x44], 0
je 0x10013f4c
xor ecx, ecx
mov dword [esp + 0x48], 0x80000000
cmp byte [esp + 0x17], cl
xorps xmm0, xmm0
movdqu xmmword [esp + 0x74], xmm0
cmovne ecx, dword [esp + 0x48]
and eax, 0x20
or ecx, eax
lea eax, [esp + 0x74]
or ecx, 0x400
push ecx
mov ecx, dword [esp + 0x44]
push eax
push edx
push ecx
push dword [esp + 0x28]
mov ecx, edi
call fcn.10013500
mov ecx, dword [esp + 0x64]
add esi, dword [esp + 0x80]
mov edx, dword [esp + 0x68]
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], esi
jmp 0x10013f50
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x6c], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x40]
cmp byte [eax], 0
je 0x10014271
cmp dword [esp + 0x3c], 0
je 0x10014271
lea edx, [esp + 0x24]
mov dword [esp + 0x24], 0x20
mov ecx, eax
call fcn.10012010
mov ecx, eax
mov eax, dword [esp + 0x3c]
add dword [esp + 0x40], ecx
test eax, eax
jle 0x100140ee
sub eax, ecx
mov ecx, 0
cmovs eax, ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
cmp ax, 0xd
je 0x10014264
cmp ax, 0xa
jne 0x10014119
test byte [ebp + 0x18], 0x20
je 0x100141e8
mov eax, 0x20
mov dword [esp + 0x24], eax
push eax
mov ecx, edi
call fcn.10012c60
mov esi, eax
test esi, esi
jne 0x1001416f
push dword [esp + 0x24]
mov esi, dword [edi + 0xa30]
mov ecx, edi
call fcn.100124c0
mov eax, 0xcccccccd
mul dword [edi + 0xa30]
mov eax, 0xcccccccd
mov ecx, edx
mul esi
shr ecx, 4
shr edx, 4
cmp ecx, edx
je 0x10014260
push dword [esp + 0x24]
mov ecx, edi
call fcn.10012c60
mov esi, eax
test esi, esi
je 0x10014260
mov eax, dword [esi]
test eax, eax
js 0x10014260
jne 0x10014186
push dword [esp + 0x24]
mov ecx, edi
call fcn.100124c0
mov eax, dword [esi]
test eax, eax
jle 0x10014260
cmp eax, dword [edi + 0xa40]
jge 0x10014260
cmp byte [esp + 0x44], 0
je 0x100141ae
mov eax, dword [esp + 0xc]
sub eax, dword [esi + 8]
mov dword [esp + 0xc], eax
mov eax, dword [edi]
lea ecx, [esp + 0x64]
push ecx
push dword [esp + 0x10]
mov ecx, edi
push dword [esp + 0x18]
mov eax, dword [eax + 0x2c]
push dword [esp + 0x30]
push dword [esp + 0x28]
call eax
test byte [edi + 0x1c], 1
mov cl, al
je 0x10014239
cmp byte [esp + 0x44], 0
jne 0x10014212
mov eax, dword [esp + 0xc]
add eax, dword [esi + 0xc]
mov dword [esp + 0xc], eax
jmp 0x1001421c
mov eax, dword [edi + 0x24]
add eax, dword [edi + 0x20]
test byte [edi + 0x1c], 1
je 0x10014202
mov esi, dword [esp + 0x48]
add dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
jmp 0x10014264
add esi, eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
jmp 0x10014264
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
add dword [esp + 0xc], eax
test cl, cl
je 0x10014260
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x10]
add eax, ecx
mov esi, dword [esp + 0xc]
cmp eax, dword [esp + 0x20]
jle 0x10014264
mov dword [esp + 0x20], ecx
jmp 0x10014264
mov eax, dword [esp + 0x10]
add eax, dword [esi + 0xc]
mov dword [esp + 0x10], eax
test cl, cl
je 0x10014260
mov eax, dword [esi + 8]
mov esi, dword [esp + 0xc]
add eax, esi
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
cmovg ecx, eax
mov dword [esp + 0x1c], ecx
jmp 0x10014264
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x40]
cmp byte [eax], 0
jne 0x100140b4
test byte [edi + 0x1c], 1
movss xmm0, dword [esp + 0x50]
movss dword [edi + 0x18], xmm0
je 0x1001428c
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x4c]
jmp 0x10014294
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x8a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x894]
xor ecx, esp
call fcn.1002bfb5
mov esp, ebp
pop ebp
ret 0x14