Function at 0x10033a20
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
mov eax, dword [0x1004b040]
xor eax, esp
mov dword [esp + 0x10c], eax
cmp byte [0x1004c58c], 0
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esp + 0x18], eax
mov ecx, dword [ebp + 0xc]
movq xmm0, qword [eax + 0xc]
mov eax, dword [eax + 0x14]
push edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], ecx
movq qword [esp + 0x40], xmm0
mov dword [esp + 0x3c], eax
je 0x10033c14
mov edx, dword [0x1004c588]
lea ecx, [esp + 0xcc]
call fcn.10033910
cmp dword [eax + 0x14], 0xf
jbe 0x10033a89
mov eax, dword [eax]
mov ecx, dword [esi + 0x10]
lea edi, [esi + 0x14]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x14], 0x2b6277
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
test eax, eax
je 0x10033b0c
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push eax
push 1
push 4
push edi
call esi
push dword [esp + 0x20]
mov ecx, dword [edi]
push ecx
push 0xc
push dword [esp + 0x34]
lea eax, [ecx - 1]
mov dword [edi], eax
call esi
push dword [esp + 0x30]
mov ecx, dword [edi]
push ecx
push 0x24
push dword [esp + 0x40]
lea eax, [ecx - 1]
mov dword [edi], eax
call esi
push dword [esp + 0x40]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov esi, dword [esp + 0x60]
add esp, 0x34
jmp 0x10033baf
mov ecx, 0x3f
xor edx, edx
mov al, byte [edx + str.r_7._2]
xor al, cl
inc ecx
mov byte [esp + edx + 0x48], al
and ecx, 0x800000ff
jns 0x10033b30
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x10033b13
mov byte [esp + 0x58], 0
mov ecx, 0x6e
xor edx, edx
mov al, byte [edx + 0x1004546c]
xor al, cl
inc ecx
mov byte [esp + edx + 0x84], al
and ecx, 0x800000ff
jns 0x10033b62
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x10033b42
push 0
lea eax, [esp + 0x4c]
mov byte [esp + 0x9c], 0
push eax
lea eax, [esp + 0x8c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xorps xmm0, xmm0
mov dword [esp + 0x94], 0
movups xmmword [esp + 0x84], xmm0
mov byte [esp + 0x98], 0
movups xmmword [esp + 0x48], xmm0
mov byte [esp + 0x58], 0
mov ecx, dword [esp + 0xe0]
cmp ecx, 0xf
jbe 0x10033bed
mov edx, dword [esp + 0xcc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10033be3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10033be3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1003b276
add esp, 8
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], 0xf
mov byte [esp + 0xcc], 0
mov byte [0x1004c58c], 0
jmp 0x10033c17
lea edi, [esi + 0x14]
cmp byte [0x1004c58d], 0
je 0x10033dc4
mov edx, dword [0x1004c588]
lea ecx, [esp + 0xe4]
call fcn.10033910
cmp dword [eax + 0x14], 0xf
jbe 0x10033c3e
mov eax, dword [eax]
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x14], 0x2b6272
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
test eax, eax
je 0x10033cbe
push eax
push 1
push 4
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push dword [esp + 0x24]
mov ecx, dword [edi]
push ecx
push 0xc
push dword [esp + 0x34]
lea eax, [ecx - 1]
mov dword [edi], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [edi]
lea eax, [ecx - 1]
mov dword [edi], eax
mov edi, dword [esp + 0x34]
push edi
push ecx
push 0x24
push dword [esp + 0x3c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x34
jmp 0x10033d61
mov ecx, 0x12
xor edx, edx
mov al, byte [edx + str._bprvmH]
xor al, cl
inc ecx
mov byte [esp + edx + 0x5c], al
and ecx, 0x800000ff
jns 0x10033ce2
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x10033cc5
mov byte [esp + 0x6c], 0
mov ecx, 0xa1
xor edx, edx
mov al, byte [edx + 0x100454b4]
xor al, cl
inc ecx
mov byte [esp + edx + 0x9c], al
and ecx, 0x800000ff
jns 0x10033d14
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x10033cf4
push 0
lea eax, [esp + 0x60]
mov byte [esp + 0xb4], 0
push eax
lea eax, [esp + 0xa4]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xorps xmm0, xmm0
mov dword [esp + 0xac], 0
movups xmmword [esp + 0x9c], xmm0
mov byte [esp + 0xb0], 0
movups xmmword [esp + 0x5c], xmm0
mov byte [esp + 0x6c], 0
mov ecx, dword [esp + 0xf8]
cmp ecx, 0xf
jbe 0x10033d9f
mov edx, dword [esp + 0xe4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10033d95
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10033d95
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1003b276
add esp, 8
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0xf
mov byte [esp + 0xe4], 0
mov byte [0x1004c58d], 0
cmp byte [0x1004c58e], 0
je 0x10033fe3
mov edx, dword [0x1004c588]
lea ecx, [esp + 0xfc]
call fcn.10033910
cmp dword [eax + 0x14], 0xf
jbe 0x10033deb
mov eax, dword [eax]
mov ecx, dword [esi + 0x10]
lea edi, [esi + 0x14]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x14], 0x2b6272
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
test eax, eax
je 0x10033e67
push eax
push 1
push 4
push edi
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
call edi
push dword [esp + 0x20]
push 1
push 0xc
push dword [esp + 0x34]
call edi
push dword [esp + 0x30]
mov ecx, dword [esi + 0x14]
push ecx
push 0x1c
push dword [esp + 0x40]
lea eax, [ecx - 1]
mov dword [esi + 0x14], eax
call edi
push dword [esp + 0x40]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x34
jmp 0x10033f12
mov ecx, 0x5f
xor edx, edx
nop
mov al, byte [edx + 0x100454e4]
xor al, cl
inc ecx
mov byte [esp + edx + 0x70], al
and ecx, 0x800000ff
jns 0x10033e8d
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x10033e70
mov byte [esp + 0x80], 0
mov ecx, 0x69
xor edx, edx
mov al, byte [edx + 0x100454cc]
xor al, cl
inc ecx
mov byte [esp + edx + 0xb4], al
and ecx, 0x800000ff
jns 0x10033ec2
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x10033ea2
push 0
lea eax, [esp + 0x74]
mov byte [esp + 0xcc], 0
push eax
lea eax, [esp + 0xbc]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xorps xmm0, xmm0
mov dword [esp + 0xc4], 0
movups xmmword [esp + 0xb4], xmm0
mov byte [esp + 0xc8], 0
movups xmmword [esp + 0x70], xmm0
mov byte [esp + 0x80], 0
mov ecx, dword [esp + 0x110]
cmp ecx, 0xf
jbe 0x10033f50
mov edx, dword [esp + 0xfc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10033f46
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10033f46
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1003b276
add esp, 8
xor edx, edx
mov dword [esp + 0x10c], 0
mov dword [esp + 0x110], 0xf
xor edi, edi
mov byte [esp + 0xfc], 0
mov dword [esp + 0x10], edx
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [edi + eax]
mov dword [edx + ecx + 0x18], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [edi + eax + 0xc]
mov dword [edx + ecx + 0x14], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [edi + eax + 4]
mov dword [edx + ecx + 0xc], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [edi + eax + 8]
mov dword [edx + ecx + 0x10], eax
mov edx, dword [esi + 4]
mov ecx, dword [esi]
add ecx, dword [esp + 0x10]
mov eax, dword [edi + edx + 0x10]
mov dword [ecx], eax
mov eax, dword [edi + edx + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [edi + edx + 0x18]
add edi, 0x1c
mov edx, dword [esp + 0x10]
add edx, 0x24
mov dword [ecx + 8], eax
mov dword [esp + 0x10], edx
cmp edi, 0x1ab3f00
jl 0x10033f76
mov byte [0x1004c58e], 0
cmp dword [esi + 0xc], 3
jne 0x10033ff4
mov byte [esi + 0x20], 1
mov dword [esi + 0x1c], 1
cmp byte [esi + 0x20], 0
je 0x10034837
cmp dword [esi + 0x1c], 1
jne 0x1003409d
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
movss xmm2, dword [0x10046344]
movss xmm4, dword [eax]
movss xmm3, dword [eax + 4]
mov eax, dword [esi + 0x10]
movss xmm1, dword [eax]
movaps xmm0, xmm1
addss xmm0, xmm2
comiss xmm0, xmm4
jb 0x10034063
subss xmm1, xmm2
comiss xmm4, xmm1
jb 0x10034063
movss xmm1, dword [eax + 4]
movaps xmm0, xmm1
addss xmm0, xmm2
comiss xmm0, xmm3
jb 0x10034063
subss xmm1, xmm2
comiss xmm3, xmm1
jb 0x10034063
mov dword [esi + 0x1c], 2
jmp 0x1003408c
mov eax, dword [0x11db9750]
inc eax
cmp byte [0x11db9754], 0
mov dword [0x11db9750], eax
je 0x1003407e
mov byte [0x11db9754], 0
cmp eax, 0x96
jne 0x1003409d
mov dword [esi + 0x1c], 0
mov byte [0x11db9754], 1
mov dword [0x11db9750], 0
cmp dword [esi + 0x1c], 2
jne 0x10034658
mov eax, dword fs:[0x2c]
mov edi, dword [0x1004b66c]
mov ecx, dword [eax + edi*4]
mov eax, dword [0x11db9c40]
cmp eax, dword [ecx + 4]
jle 0x100340e6
push 0x11db9c40
call fcn.1003b300
add esp, 4
cmp dword [0x11db9c40], 0xffffffff
jne 0x100340e6
push 0x11db9c40
call fcn.1003b2af
add esp, 4
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + edi*4]
mov eax, dword [0x11db9c28]
cmp eax, dword [ecx + 4]
jle 0x1003411f
push 0x11db9c28
call fcn.1003b300
add esp, 4
cmp dword [0x11db9c28], 0xffffffff
jne 0x1003411f
push 0x11db9c28
call fcn.1003b2af
add esp, 4
mov ecx, dword [0x1004b8d8]
push 0x11db9c44
mov eax, dword [ecx]
mov eax, dword [eax + 0x4c]
call eax
mov eax, dword [esi]
movss xmm6, dword [0x11db9c44]
movss xmm7, dword [0x11db9c48]
movss xmm4, dword [0x10046334]
movss xmm2, dword [eax]
movss xmm1, dword [eax + 4]
subss xmm2, xmm6
movss xmm5, dword [eax + 8]
subss xmm1, xmm7
subss xmm5, dword [0x11db9c4c]
movss xmm0, dword [0x10046364]
comiss xmm2, xmm4
movss dword [0x11db9c30], xmm2
movss dword [0x11db9c34], xmm1
movss dword [0x11db9c38], xmm5
jbe 0x1003419a
subss xmm2, xmm0
movss dword [0x11db9c30], xmm2
comiss xmm1, xmm4
jbe 0x100341ab
subss xmm1, xmm0
movss dword [0x11db9c34], xmm1
movss xmm3, dword [0x100463e4]
comiss xmm3, xmm2
jbe 0x100341c4
addss xmm2, xmm0
movss dword [0x11db9c30], xmm2
comiss xmm3, xmm1
jbe 0x100341d5
addss xmm1, xmm0
movss dword [0x11db9c34], xmm1
mulss xmm2, dword [0x1004615c]
mulss xmm1, dword [0x1004615c]
mulss xmm5, dword [0x1004615c]
addss xmm2, xmm6
addss xmm1, xmm7
addss xmm5, dword [0x11db9c4c]
comiss xmm2, xmm4
movss dword [ebp + 0x10], xmm2
movss dword [ebp + 0x14], xmm1
movss dword [ebp + 0x18], xmm5
jbe 0x1003421a
subss xmm2, xmm0
movss dword [ebp + 0x10], xmm2
comiss xmm1, xmm4
jbe 0x10034228
subss xmm1, xmm0
movss dword [ebp + 0x14], xmm1
comiss xmm3, xmm2
jbe 0x10034236
addss xmm2, xmm0
movss dword [ebp + 0x10], xmm2
comiss xmm3, xmm1
jbe 0x10034244
addss xmm1, xmm0
movss dword [ebp + 0x14], xmm1
mov ecx, dword [0x1004b8d8]
lea edx, [ebp + 0x10]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x50]
call eax
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov ecx, dword [esi + 0x10]
movss xmm1, dword [eax + 4]
movss xmm4, dword [ecx + 4]
movss xmm2, dword [eax]
subss xmm4, xmm1
movss xmm0, dword [ecx]
movss dword [esp + 0x30], xmm1
subss xmm0, xmm2
movss xmm1, dword [ecx + 8]
subss xmm1, dword [eax + 8]
movss dword [esp + 0x14], xmm4
movss dword [esp + 0x38], xmm2
movss dword [esp + 0x18], xmm0
movss dword [esp + 0x10], xmm1
cvtps2pd xmm1, xmm0
cvtps2pd xmm0, xmm4
xorps xmm4, xmm4
ucomisd xmm0, xmm4
lahf
test ah, 0x44
jp 0x100342c7
ucomisd xmm1, xmm4
lahf
test ah, 0x44
jp 0x100342c7
xorps xmm0, xmm0
jmp 0x100342e5
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10046288]
xorps xmm4, xmm4
comisd xmm4, xmm0
jbe 0x100342e5
addsd xmm0, qword [0x10046298]
cvtsd2ss xmm0, xmm0
lea ecx, [esp + 0x20]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esp + 0x18]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esp + 0x14]
movss dword [esp + 0x24], xmm0
movss xmm0, dword [esp + 0x10]
movss dword [esp + 0x28], xmm0
call fcn.10002a30
xorps xmm1, xmm1
sqrtss xmm1, xmm0
comiss xmm1, dword [0x100462ac]
jbe 0x10034336
movss xmm3, dword [0x10046344]
jmp 0x10034362
comiss xmm1, dword [0x100462a4]
jbe 0x10034349
movss xmm3, dword [0x1004631c]
jmp 0x10034362
cvtps2pd xmm0, xmm1
comisd xmm0, xmmword [0x10046278]
jbe 0x10034400
movss xmm3, dword [0x10046304]
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
movss dword [esp + 0x20], xmm3
mov dword [esp + 0x24], 0
movss xmm0, dword [edi + 0x20]
movss dword [esp + 0x28], xmm0
call fcn.10002a30
movss dword [esp + 0x10], xmm0
cvtps2pd xmm1, xmm3
xorps xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10046288]
xorps xmm1, xmm1
comisd xmm1, xmm0
jbe 0x100343b2
addsd xmm0, qword [0x10046298]
movss xmm2, dword [ebp + 0x14]
subss xmm2, dword [esp + 0xc]
cvtsd2ss xmm0, xmm0
comiss xmm2, dword [0x10046334]
movaps xmm1, xmm2
movss dword [esp + 0x18], xmm0
mulss xmm1, dword [0x1004611c]
movss dword [esp + 0x14], xmm2
movss dword [esp + 0xc], xmm1
ja 0x10034467
movss xmm0, dword [0x100463e4]
comiss xmm0, xmm2
ja 0x10034467
xorps xmm3, xmm3
jmp 0x100344be
comiss xmm1, dword [0x100461d0]
jbe 0x10034413
movss xmm3, dword [0x100462d0]
jmp 0x1003441b
movss xmm3, dword [0x100462c4]
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
movss dword [esp + 0x20], xmm3
mov dword [esp + 0x24], 0
movss xmm0, dword [edi + 0x20]
or dword [edi + 0x24], 0x20000
movss dword [esp + 0x28], xmm0
call fcn.10002a30
cvtps2pd xmm1, xmm3
movss dword [esp + 0x10], xmm0
ucomisd xmm1, xmm4
lahf
test ah, 0x44
jp 0x10034391
xorps xmm0, xmm0
jmp 0x100343b2
xorps xmm2, xmm2
comiss xmm2, xmm1
jbe 0x1003447c
xorps xmm1, xmmword [0x10046490]
movss dword [esp + 0xc], xmm1
fld dword [esp + 0xc]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm2, dword [esp + 0x18]
xorps xmm3, xmm3
fstp dword [esp + 0x10]
movss xmm0, dword [esp + 0x10]
add esp, 4
comiss xmm3, xmm2
mulss xmm0, dword [0x10046364]
jbe 0x100344b2
addss xmm2, xmm0
jmp 0x100344b6
subss xmm2, xmm0
movss xmm0, dword [0x100463e4]
addss xmm2, dword [esp + 0x18]
comiss xmm2, dword [0x10046334]
movaps xmm1, xmm2
movss dword [esp + 0x14], xmm2
mulss xmm1, dword [0x1004611c]
movss dword [esp + 0xc], xmm1
ja 0x100344e9
comiss xmm0, xmm2
jbe 0x10034535
comiss xmm3, xmm1
jbe 0x100344fb
xorps xmm1, xmmword [0x10046490]
movss dword [esp + 0xc], xmm1
fld dword [esp + 0xc]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm2, dword [esp + 0x18]
xorps xmm0, xmm0
add esp, 4
comiss xmm0, xmm2
fstp dword [esp + 0xc]
movss xmm0, dword [esp + 0xc]
mulss xmm0, dword [0x10046364]
jbe 0x10034531
addss xmm2, xmm0
jmp 0x10034535
subss xmm2, xmm0
mulss xmm2, dword [0x10046138]
movaps xmm0, xmm2
call fcn.1003c0f0
movss xmm3, dword [esp + 0x38]
movaps xmm1, xmm0
movsd xmm2, qword [0x10046208]
shufps xmm1, xmm0, 1
mulss xmm1, dword [esp + 0x10]
mulss xmm0, dword [esp + 0x10]
movss dword [edi + 0x18], xmm1
cvtps2pd xmm3, xmm3
movss dword [edi + 0x1c], xmm0
mov eax, dword [esi + 0x10]
movss xmm1, dword [eax]
cvtps2pd xmm1, xmm1
movaps xmm0, xmm1
addsd xmm0, xmm2
comisd xmm0, xmm3
jb 0x10034658
subsd xmm1, xmm2
comisd xmm3, xmm1
jb 0x10034658
movss xmm1, dword [eax + 4]
movss xmm3, dword [esp + 0x30]
cvtps2pd xmm1, xmm1
cvtps2pd xmm3, xmm3
movaps xmm0, xmm1
addsd xmm0, xmm2
comisd xmm0, xmm3
jb 0x10034658
subsd xmm1, xmm2
comisd xmm3, xmm1
jb 0x10034658
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x20]
movss xmm0, dword [eax + 0xec]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [eax + 0xf0]
movss dword [esp + 0x24], xmm0
movss xmm0, dword [eax + 0xf4]
movss dword [esp + 0x28], xmm0
call fcn.10002a30
movss xmm1, dword [0x100462a0]
comiss xmm1, xmm0
jb 0x10034658
movss xmm0, dword [0x11db9c30]
movss xmm2, dword [0x1004619c]
comiss xmm2, xmm0
jbe 0x10034651
movss xmm1, dword [0x100463c0]
comiss xmm0, xmm1
jbe 0x10034651
movss xmm0, dword [0x11db9c34]
comiss xmm2, xmm0
jbe 0x10034651
comiss xmm0, xmm1
jbe 0x10034651
mov dword [esi + 0xc], 2
mov byte [esi + 0x20], 0
jmp 0x10034658
mov dword [esi + 0x1c], 3
cmp dword [esi + 0x1c], 3
jne 0x10034837
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1004b66c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x11db9c2c]
cmp eax, dword [ecx + 4]
jle 0x100346a1
push 0x11db9c2c
call fcn.1003b300
add esp, 4
cmp dword [0x11db9c2c], 0xffffffff
jne 0x100346a1
push 0x11db9c2c
call fcn.1003b2af
add esp, 4
mov ecx, dword [0x1004b8d8]
push 0x11db9c1c
mov eax, dword [ecx]
mov eax, dword [eax + 0x4c]
call eax
mov eax, dword [esi]
movss xmm5, dword [0x10046334]
movss xmm0, dword [0x10046364]
movss xmm3, dword [eax]
subss xmm3, dword [0x11db9c1c]
movss xmm4, dword [eax + 4]
subss xmm4, dword [0x11db9c20]
movss xmm6, dword [eax + 8]
subss xmm6, dword [0x11db9c24]
comiss xmm3, xmm5
movss dword [esp + 0x14], xmm3
movss dword [esp + 0x10], xmm4
jbe 0x10034706
subss xmm3, xmm0
movss dword [esp + 0x14], xmm3
comiss xmm4, xmm5
movaps xmm7, xmm3
movss dword [esp + 0xc], xmm3
movaps xmm1, xmm3
jbe 0x10034727
subss xmm4, xmm0
movss dword [esp + 0xc], xmm3
movss dword [esp + 0x10], xmm4
movss xmm3, dword [0x100463e4]
movaps xmm2, xmm4
comiss xmm3, xmm7
movss dword [esp + 0x18], xmm4
movss dword [esp + 0x30], xmm4
jbe 0x1003475e
movss xmm1, dword [esp + 0xc]
movaps xmm7, xmm4
addss xmm1, xmm0
movss dword [esp + 0x18], xmm4
movss dword [esp + 0x14], xmm1
jmp 0x10034764
movss xmm7, dword [esp + 0x30]
comiss xmm3, dword [esp + 0x18]
jbe 0x10034778
movaps xmm2, xmm7
addss xmm2, xmm0
movss dword [esp + 0x10], xmm2
movss xmm4, dword [0x1004615c]
mulss xmm1, xmm4
mulss xmm2, xmm4
addss xmm1, dword [0x11db9c1c]
mulss xmm6, xmm4
addss xmm2, dword [0x11db9c20]
comiss xmm1, xmm5
addss xmm6, dword [0x11db9c24]
movss dword [ebp + 0x10], xmm1
movss dword [ebp + 0x14], xmm2
movss dword [ebp + 0x18], xmm6
jbe 0x100347c1
subss xmm1, xmm0
movss dword [ebp + 0x10], xmm1
comiss xmm2, xmm5
jbe 0x100347cf
subss xmm2, xmm0
movss dword [ebp + 0x14], xmm2
comiss xmm3, xmm1
jbe 0x100347dd
addss xmm1, xmm0
movss dword [ebp + 0x10], xmm1
comiss xmm3, xmm2
jbe 0x100347eb
addss xmm2, xmm0
movss dword [ebp + 0x14], xmm2
mov ecx, dword [0x1004b8d8]
lea edx, [ebp + 0x10]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x50]
call eax
movss xmm0, dword [esp + 0x14]
movss xmm2, dword [0x1004619c]
comiss xmm2, xmm0
jbe 0x10034837
movss xmm1, dword [0x100463c0]
comiss xmm0, xmm1
jbe 0x10034837
movss xmm0, dword [esp + 0x10]
comiss xmm2, xmm0
jbe 0x10034837
comiss xmm0, xmm1
jbe 0x10034837
mov dword [esi + 0xc], 2
mov byte [esi + 0x20], 0
cmp dword [esi + 0xc], 1
jne 0x10034928
cmp byte [0x11db9c3c], 0
jne 0x10034865
mov byte [esi + 0x20], 0
cmp dword [0x10f6ce10], 1
jge 0x1003485e
mov dword [esi + 8], 0
mov byte [0x11db9c3c], 1
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov ecx, dword [esi + 8]
mov edi, eax
mov edx, dword [esp + 0x2c]
lea esi, [ecx + ecx*2]
mov ecx, dword [edi]
mov edx, dword [edx + 0x10]
mov dword [edx + esi*4], ecx
mov eax, dword [edi + 4]
mov dword [edx + esi*4 + 4], eax
mov eax, dword [edi + 8]
mov dword [edx + esi*4 + 8], eax
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
mov eax, dword [esi + 8]
mov ecx, dword [esi]
lea edx, [eax + eax*8]
mov eax, dword [edi + 0x24]
mov dword [ecx + edx*4 + 0x18], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi]
lea edx, [eax + eax*8]
mov eax, dword [edi + 0x20]
mov dword [ecx + edx*4 + 0x14], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi]
lea edx, [eax + eax*8]
mov eax, dword [edi + 0x1c]
mov dword [ecx + edx*4 + 0x10], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi]
lea edx, [eax + eax*8]
mov eax, dword [edi + 0x18]
mov dword [ecx + edx*4 + 0xc], eax
mov eax, dword [esi + 8]
movss xmm0, dword [ebp + 0x10]
lea ecx, [eax + eax*8]
mov eax, dword [esi]
movss dword [eax + ecx*4], xmm0
movss xmm0, dword [ebp + 0x14]
movss dword [eax + ecx*4 + 4], xmm0
movss xmm0, dword [ebp + 0x18]
movss dword [eax + ecx*4 + 8], xmm0
mov eax, dword [esi + 8]
mov ecx, dword [esi]
lea edx, [eax + eax*8]
mov eax, dword [edi + 0x30]
mov dword [ecx + edx*4 + 0x20], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi]
lea edx, [eax + eax*8]
mov eax, dword [edi + 0x2c]
mov dword [ecx + edx*4 + 0x1c], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x14], eax
inc eax
mov dword [esi + 8], eax
jmp 0x10034933
mov edi, dword [esp + 0x1c]
mov byte [0x11db9c3c], 0
cmp dword [esi + 0xc], 2
jne 0x10034d5a
cmp byte [0x11db9c3d], 0
jne 0x1003495c
mov dword [esi + 8], 0
xor ecx, ecx
mov byte [esi + 0x20], 0
mov byte [0x11db9c3d], 1
jmp 0x1003495f
mov ecx, dword [esi + 8]
mov eax, dword [0x10f6ce10]
test eax, eax
jle 0x10034973
cmp ecx, eax
jl 0x10034973
mov dword [esi + 0xc], 1
cmp ecx, dword [esi + 0x14]
jl 0x10034988
xor eax, eax
mov edx, 3
cmp byte [esi + 0x18], al
cmovne eax, edx
mov dword [esi + 0xc], eax
mov eax, dword [esi]
lea ecx, [ecx + ecx*8]
mov eax, dword [eax + ecx*4 + 0x18]
mov dword [edi + 0x24], eax
mov eax, dword [esi + 8]
lea ecx, [eax + eax*8]
mov eax, dword [esi]
mov eax, dword [eax + ecx*4 + 0x14]
mov dword [edi + 0x20], eax
mov eax, dword [esi + 8]
lea ecx, [eax + eax*8]
mov eax, dword [esi]
movss xmm3, dword [eax + ecx*4 + 0x10]
movss dword [edi + 0x1c], xmm3
mov eax, dword [esi + 8]
lea ecx, [eax + eax*8]
mov eax, dword [esi]
movss xmm2, dword [eax + ecx*4 + 0xc]
movss dword [edi + 0x18], xmm2
movaps xmm1, xmm2
mov eax, dword [esi + 8]
mulss xmm1, xmm2
lea ecx, [eax + eax*8]
mov eax, dword [esi]
movss xmm5, dword [eax + ecx*4]
movss dword [ebp + 0x10], xmm5
movss xmm4, dword [eax + ecx*4 + 4]
movss dword [ebp + 0x14], xmm4
movss xmm0, dword [eax + ecx*4 + 8]
movss dword [ebp + 0x18], xmm0
movss dword [esp + 0x30], xmm0
movaps xmm0, xmm3
mulss xmm0, xmm3
mov eax, dword [eax + ecx*4 + 0x20]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 8]
addss xmm1, xmm0
movss dword [esp + 0x18], xmm5
xorps xmm0, xmm0
movss dword [esp + 0x1c], xmm4
lea ecx, [eax + eax*8]
mov eax, dword [esi]
sqrtss xmm0, xmm1
mov eax, dword [eax + ecx*4 + 0x1c]
mov dword [edi + 0x2c], eax
cvtps2pd xmm1, xmm2
movss dword [esp + 0x38], xmm0
movaps xmm0, xmm5
cvtps2pd xmm2, xmm3
unpcklps xmm0, xmm4
movq qword [ebp + 0x10], xmm0
movq qword [esp + 0x20], xmm0
xorps xmm0, xmm0
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jp 0x10034a66
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jnp 0x10034a8d
movaps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10046288]
xorps xmm1, xmm1
movss xmm4, dword [esp + 0x1c]
comisd xmm1, xmm0
jbe 0x10034a8d
addsd xmm0, qword [0x10046298]
movss xmm2, dword [0x10f6ce0c]
movss xmm5, dword [0x10046334]
subss xmm4, xmm2
comiss xmm2, xmm5
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x1c], xmm4
movss dword [esp + 0x2c], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [0x1004611c]
movss dword [ebp + 0x14], xmm4
movss dword [esp + 0xc], xmm0
ja 0x10034ae3
movss xmm3, dword [0x100463e4]
comiss xmm3, xmm2
ja 0x10034ae3
movss xmm1, dword [0x10046364]
jmp 0x10034b4e
xorps xmm2, xmm2
comiss xmm2, xmm0
jbe 0x10034af8
xorps xmm0, xmmword [0x10046490]
movss dword [esp + 0xc], xmm0
fld dword [esp + 0xc]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm2, dword [0x10f6ce0c]
xorps xmm0, xmm0
movss xmm1, dword [0x10046364]
add esp, 4
movss xmm4, dword [esp + 0x1c]
movss xmm3, dword [0x100463e4]
movss xmm5, dword [0x10046334]
comiss xmm0, xmm2
fstp dword [esp + 0xc]
movss xmm0, dword [esp + 0xc]
mulss xmm0, xmm1
jbe 0x10034b4a
addss xmm2, xmm0
jmp 0x10034b4e
subss xmm2, xmm0
comiss xmm2, dword [0x10046310]
ja 0x10034b64
movss xmm0, dword [0x100463d4]
comiss xmm0, xmm2
jbe 0x10034b7c
cmp byte [0x10f6ce0a], 0
je 0x10034b7c
movss xmm0, dword [0x1004630c]
movss dword [ebp + 0x10], xmm0
jmp 0x10034b82
movss xmm0, dword [esp + 0x18]
cmp byte [0x10f6ce09], 0
je 0x10034bae
movq xmm0, qword [esp + 0x40]
mov eax, dword [esp + 0x3c]
movq qword [ebp + 0x10], xmm0
movss xmm4, dword [ebp + 0x14]
movss xmm0, dword [ebp + 0x10]
mov dword [ebp + 0x18], eax
movss xmm2, dword [ebp + 0x18]
jmp 0x10034bb4
movss xmm2, dword [esp + 0x30]
comiss xmm0, xmm5
jbe 0x10034bc2
subss xmm0, xmm1
movss dword [ebp + 0x10], xmm0
comiss xmm3, xmm0
jbe 0x10034bd0
addss xmm0, xmm1
movss dword [ebp + 0x10], xmm0
comiss xmm4, xmm5
jbe 0x10034bde
subss xmm4, xmm1
movss dword [ebp + 0x14], xmm4
comiss xmm3, xmm4
jbe 0x10034bec
addss xmm4, xmm1
movss dword [ebp + 0x14], xmm4
comiss xmm2, xmm5
jbe 0x10034bfa
subss xmm2, xmm1
movss dword [ebp + 0x18], xmm2
comiss xmm3, xmm2
jbe 0x10034c08
addss xmm2, xmm1
movss dword [ebp + 0x18], xmm2
mov ecx, dword [0x1004b8d8]
lea edx, [ebp + 0x10]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x50]
call eax
movss xmm2, dword [ebp + 0x14]
subss xmm2, dword [esp + 0x24]
comiss xmm2, dword [0x10046334]
movaps xmm0, xmm2
movss dword [esp + 0x3c], xmm2
mulss xmm0, dword [0x1004611c]
movss dword [esp + 0xc], xmm0
ja 0x10034c56
movss xmm3, dword [0x100463e4]
comiss xmm3, xmm2
ja 0x10034c56
xorps xmm5, xmm5
jmp 0x10034cad
xorps xmm2, xmm2
comiss xmm2, xmm0
jbe 0x10034c6b
xorps xmm0, xmmword [0x10046490]
movss dword [esp + 0xc], xmm0
fld dword [esp + 0xc]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm2, dword [esp + 0x40]
xorps xmm5, xmm5
movss xmm3, dword [0x100463e4]
add esp, 4
comiss xmm5, xmm2
fstp dword [esp + 0xc]
movss xmm0, dword [esp + 0xc]
mulss xmm0, dword [0x10046364]
jbe 0x10034ca9
addss xmm2, xmm0
jmp 0x10034cad
subss xmm2, xmm0
movss xmm1, dword [esp + 0x2c]
addss xmm1, xmm2
comiss xmm1, dword [0x10046334]
movaps xmm0, xmm1
movss dword [esp + 0x2c], xmm1
mulss xmm0, dword [0x1004611c]
movss dword [esp + 0xc], xmm0
ja 0x10034cdc
comiss xmm3, xmm1
jbe 0x10034d28
comiss xmm5, xmm0
jbe 0x10034cee
xorps xmm0, xmmword [0x10046490]
movss dword [esp + 0xc], xmm0
fld dword [esp + 0xc]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm1, dword [esp + 0x30]
xorps xmm0, xmm0
add esp, 4
comiss xmm0, xmm1
fstp dword [esp + 0xc]
movss xmm0, dword [esp + 0xc]
mulss xmm0, dword [0x10046364]
jbe 0x10034d24
addss xmm1, xmm0
jmp 0x10034d28
subss xmm1, xmm0
mulss xmm1, dword [0x10046138]
movaps xmm0, xmm1
call fcn.1003c0f0
movaps xmm1, xmm0
shufps xmm1, xmm0, 1
mulss xmm1, dword [esp + 0x38]
mulss xmm0, dword [esp + 0x38]
movss dword [edi + 0x18], xmm1
movss dword [edi + 0x1c], xmm0
inc dword [esi + 8]
jmp 0x10034d61
mov byte [0x11db9c3d], 0
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x10034d7f
cmp byte [0x11db9c3e], al
jne 0x10034d90
mov dword [esi + 8], eax
mov byte [esi + 0x20], al
mov byte [0x11db9c3e], 1
jmp 0x10034d90
mov byte [0x11db9c3e], 0
cmp eax, 2
je 0x10034d9a
cmp eax, 1
je 0x10034d9a
mov dword [0x10f6ce10], 0
mov ecx, dword [esp + 0x114]
pop edi
pop esi
xor ecx, esp
call fcn.1003af4e
mov esp, ebp
pop ebp
ret 0x14