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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x168
mov eax, dword [0x1005f010]
xor eax, esp
mov dword [esp + 0x164], eax
cmp byte [0x10111c2c], 0
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], eax
movq xmm0, qword [eax + 0xc]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x20], ecx
movq qword [esp + 0x48], xmm0
mov dword [esp + 0x2c], eax
je 0x1003bd80
mov edx, dword [0x10111c28]
lea ecx, [esp + 0x124]
call fcn.1003ba80
cmp dword [eax + 0x14], 0x10
jb 0x1003bbf5
mov eax, dword [eax]
mov ecx, dword [edi + 0x10]
lea esi, [edi + 0x14]
mov dword [esp + 0x14], ecx
mov ecx, dword [edi]
mov dword [esp + 0x24], 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 0x1003bc78
push eax
push 1
push 4
push esi
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
call esi
push dword [esp + 0x20]
mov ecx, dword [edi + 0x14]
push ecx
push 0xc
push dword [esp + 0x30]
lea eax, [ecx - 1]
mov dword [edi + 0x14], eax
call esi
push dword [esp + 0x30]
mov ecx, dword [edi + 0x14]
push ecx
push 0x24
push dword [esp + 0x50]
lea eax, [ecx - 1]
mov dword [edi + 0x14], eax
call esi
push dword [esp + 0x40]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x34
jmp 0x1003bd1d
mov ecx, 0x3f
xor edx, edx
nop
mov al, byte [edx + str.r_7._2]
xor al, cl
inc ecx
mov byte [esp + edx + 0x60], al
and ecx, 0x800000ff
jns 0x1003bc9d
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x1003bc80
mov byte [esp + 0x70], 0
mov ecx, 0x6e
xor edx, edx
nop
mov al, byte [edx + 0x10053a08]
xor al, cl
inc ecx
mov byte [esp + edx + 0xc0], al
and ecx, 0x800000ff
jns 0x1003bcd0
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x1003bcb0
push 0
lea eax, [esp + 0x64]
mov byte [esp + 0xd8], 0
push eax
lea eax, [esp + 0xc8]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xorps xmm0, xmm0
mov dword [esp + 0xd0], 0
movaps xmmword [esp + 0xc0], xmm0
mov byte [esp + 0xd4], 0
movaps xmmword [esp + 0x60], xmm0
mov byte [esp + 0x70], 0
mov ecx, dword [esp + 0x138]
cmp ecx, 0x10
jb 0x1003bd5b
mov edx, dword [esp + 0x124]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003bd51
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003bd51
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100434cb
add esp, 8
mov dword [esp + 0x134], 0
mov dword [esp + 0x138], 0xf
mov byte [esp + 0x124], 0
mov byte [0x10111c2c], 0
cmp byte [0x10111c2d], 0
lea eax, [edi + 0x10]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov dword [esp + 0x14], eax
je 0x1003bf4e
mov edx, dword [0x10111c28]
lea ecx, [esp + 0x13c]
call fcn.1003ba80
cmp dword [eax + 0x14], 0x10
jb 0x1003bdb4
mov eax, dword [eax]
lea ecx, [edi + 0x10]
mov dword [esp + 0xc], 0x2b6272
mov dword [esp + 0x14], ecx
mov ecx, dword [ecx]
mov dword [esp + 0x24], ecx
mov ecx, dword [edi]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0xc]
push ecx
push eax
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 0x1003be37
push eax
push 1
lea edx, [edi + 0x14]
push 4
push edx
call esi
push dword [esp + 0x20]
mov ecx, dword [edi + 0x14]
push ecx
push 0xc
push dword [esp + 0x40]
lea eax, [ecx - 1]
mov dword [edi + 0x14], eax
call esi
push dword [esp + 0x30]
mov ecx, dword [edi + 0x14]
push ecx
push 0x24
push dword [esp + 0x48]
lea eax, [ecx - 1]
mov dword [edi + 0x14], eax
call esi
push dword [esp + 0x40]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x34
jmp 0x1003beeb
mov ecx, 0x12
xor edx, edx
nop
mov al, byte [edx + str._bprvmH]
xor al, cl
inc ecx
mov byte [esp + edx + 0x80], al
and ecx, 0x800000ff
jns 0x1003be60
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x1003be40
mov byte [esp + 0x90], 0
mov ecx, 0xa1
xor edx, edx
mov al, byte [edx + 0x10053a34]
xor al, cl
inc ecx
mov byte [esp + edx + 0xe0], al
and ecx, 0x800000ff
jns 0x1003be95
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x1003be75
push 0
lea eax, [esp + 0x84]
mov byte [esp + 0xf8], 0
push eax
lea eax, [esp + 0xe8]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xorps xmm0, xmm0
mov dword [esp + 0xf0], 0
movaps xmmword [esp + 0xe0], xmm0
mov byte [esp + 0xf4], 0
movaps xmmword [esp + 0x80], xmm0
mov byte [esp + 0x90], 0
mov ecx, dword [esp + 0x150]
cmp ecx, 0x10
jb 0x1003bf29
mov edx, dword [esp + 0x13c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003bf1f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003bf1f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100434cb
add esp, 8
mov dword [esp + 0x14c], 0
mov dword [esp + 0x150], 0xf
mov byte [esp + 0x13c], 0
mov byte [0x10111c2d], 0
cmp byte [0x10111c2e], 0
je 0x1003c17d
mov edx, dword [0x10111c28]
lea ecx, [esp + 0x154]
call fcn.1003ba80
cmp dword [eax + 0x14], 0x10
jb 0x1003bf7a
mov eax, dword [eax]
lea ecx, [edi + 0x10]
jmp 0x1003bf7e
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 4]
mov dword [esp + 0x24], 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]
mov esi, eax
mov dword [esp + 0x14], 0
add esp, 8
test esi, esi
je 0x1003bff4
push esi
push 1
lea edx, [edi + 0x14]
push 4
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push esi
push 1
push 0xc
push dword [esp + 0x38]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [edi + 0x14]
push esi
push ecx
push 0x1c
push dword [esp + 0x50]
lea eax, [ecx - 1]
mov dword [edi + 0x14], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x34
jmp 0x1003c0ab
mov ecx, 0x5f
xor edx, edx
nop dword [eax + eax]
mov al, byte [edx + 0x10053a4c]
xor al, cl
inc ecx
mov byte [esp + edx + 0xa0], al
and ecx, 0x800000ff
jns 0x1003c020
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x1003c000
mov byte [esp + 0xb0], 0
mov ecx, 0x69
xor edx, edx
mov al, byte [edx + 0x10053a60]
xor al, cl
inc ecx
mov byte [esp + edx + 0x100], al
and ecx, 0x800000ff
jns 0x1003c055
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x1003c035
push 0
lea eax, [esp + 0xa4]
mov byte [esp + 0x118], 0
push eax
lea eax, [esp + 0x108]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xorps xmm0, xmm0
mov dword [esp + 0x110], 0
movaps xmmword [esp + 0x100], xmm0
mov byte [esp + 0x114], 0
movaps xmmword [esp + 0xa0], xmm0
mov byte [esp + 0xb0], 0
mov ecx, dword [esp + 0x168]
cmp ecx, 0x10
jb 0x1003c0e9
mov edx, dword [esp + 0x154]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c0df
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003c0df
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100434cb
add esp, 8
xor edx, edx
mov dword [esp + 0x164], 0
mov dword [esp + 0x168], 0xf
xor esi, esi
mov byte [esp + 0x154], 0
mov dword [esp + 0x10], edx
nop
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [esi + eax]
mov dword [edx + ecx + 0x18], eax
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [esi + eax + 0xc]
mov dword [edx + ecx + 0x14], eax
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [esi + eax + 4]
mov dword [edx + ecx + 0xc], eax
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [esi + eax + 8]
mov dword [edx + ecx + 0x10], eax
mov edx, dword [edi + 4]
mov ecx, dword [edi]
add ecx, dword [esp + 0x10]
mov eax, dword [esi + edx + 0x10]
mov dword [ecx], eax
mov eax, dword [esi + edx + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [esi + edx + 0x18]
add esi, 0x1c
mov edx, dword [esp + 0x10]
add edx, 0x24
mov dword [ecx + 8], eax
mov dword [esp + 0x10], edx
cmp esi, 0x1ab3f00
jl 0x1003c110
mov byte [0x10111c2e], 0
cmp dword [edi + 0xc], 3
jne 0x1003c18e
mov byte [edi + 0x20], 1
mov dword [edi + 0x1c], 1
cmp byte [edi + 0x20], 0
xorps xmm1, xmm1
movsd xmm0, qword [0x10054098]
movsd qword [esp + 0x38], xmm0
movsd xmm0, qword [0x100540a8]
movsd qword [esp + 0x30], xmm1
movsd qword [esp + 0x40], xmm0
je 0x1003c9d1
cmp dword [edi + 0x1c], 1
jne 0x1003c253
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
movss xmm2, dword [0x1005415c]
movss xmm4, dword [eax]
movss xmm3, dword [eax + 4]
mov eax, dword [edi + 0x10]
movss xmm1, dword [eax]
movaps xmm0, xmm1
addss xmm0, xmm2
comiss xmm0, xmm4
jb 0x1003c222
subss xmm1, xmm2
comiss xmm4, xmm1
jb 0x1003c222
movss xmm1, dword [eax + 4]
movaps xmm0, xmm1
addss xmm0, xmm2
comiss xmm0, xmm3
jb 0x1003c222
subss xmm1, xmm2
comiss xmm3, xmm1
jb 0x1003c222
mov dword [edi + 0x1c], 2
jmp 0x1003c242
mov eax, dword [0x102feb90]
inc eax
mov byte [0x102feb94], 0
mov dword [0x102feb90], eax
cmp eax, 0x96
jne 0x1003c253
mov dword [edi + 0x1c], 0
mov byte [0x102feb94], 1
mov dword [0x102feb90], 0
cmp dword [edi + 0x1c], 2
mov esi, dword [0x10110af4]
jne 0x1003c83d
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + esi*4]
mov eax, dword [0x102ff3dc]
cmp eax, dword [ecx + 4]
jle 0x1003c29c
push 0x102ff3dc
call fcn.1004362f
add esp, 4
cmp dword [0x102ff3dc], 0xffffffff
jne 0x1003c29c
push 0x102ff3dc
call fcn.100435e5
add esp, 4
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + esi*4]
mov eax, dword [0x102ff3c4]
cmp eax, dword [ecx + 4]
jle 0x1003c2d5
push 0x102ff3c4
call fcn.1004362f
add esp, 4
cmp dword [0x102ff3c4], 0xffffffff
jne 0x1003c2d5
push 0x102ff3c4
call fcn.100435e5
add esp, 4
mov ecx, dword [0x10111a70]
push 0x102ff3e0
mov eax, dword [ecx]
mov eax, dword [eax + 0x4c]
call eax
mov eax, dword [edi]
movss xmm6, dword [0x102ff3e0]
movss xmm7, dword [0x102ff3e4]
movss xmm4, dword [0x1005414c]
movss xmm2, dword [eax]
movss xmm0, dword [eax + 4]
subss xmm2, xmm6
movss xmm5, dword [eax + 8]
subss xmm0, xmm7
subss xmm5, dword [0x102ff3e8]
movss xmm1, dword [0x10054178]
comiss xmm2, xmm4
movss dword [0x102ff3cc], xmm2
movss dword [0x102ff3d0], xmm0
movss dword [0x102ff3d4], xmm5
jbe 0x1003c350
subss xmm2, xmm1
movss dword [0x102ff3cc], xmm2
comiss xmm0, xmm4
jbe 0x1003c361
subss xmm0, xmm1
movss dword [0x102ff3d0], xmm0
movss xmm3, dword [0x10054218]
comiss xmm3, xmm2
jbe 0x1003c37a
addss xmm2, xmm1
movss dword [0x102ff3cc], xmm2
comiss xmm3, xmm0
jbe 0x1003c38b
addss xmm0, xmm1
movss dword [0x102ff3d0], xmm0
mulss xmm2, dword [0x10053f60]
mulss xmm0, dword [0x10053f60]
mulss xmm5, dword [0x10053f60]
addss xmm2, xmm6
addss xmm0, xmm7
addss xmm5, dword [0x102ff3e8]
comiss xmm2, xmm4
movss dword [ebp + 0x10], xmm2
movss dword [ebp + 0x14], xmm0
movss dword [ebp + 0x18], xmm5
jbe 0x1003c3d0
subss xmm2, xmm1
movss dword [ebp + 0x10], xmm2
comiss xmm0, xmm4
jbe 0x1003c3de
subss xmm0, xmm1
movss dword [ebp + 0x14], xmm0
comiss xmm3, xmm2
jbe 0x1003c3ec
addss xmm2, xmm1
movss dword [ebp + 0x10], xmm2
comiss xmm3, xmm0
jbe 0x1003c3fa
addss xmm0, xmm1
movss dword [ebp + 0x14], xmm0
mov ecx, dword [0x10111a70]
lea edx, [ebp + 0x10]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x50]
call eax
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov ecx, dword [edi + 0x10]
movsd xmm4, qword [esp + 0x30]
movss xmm1, dword [eax]
movss xmm0, dword [eax + 4]
movss xmm2, dword [ecx]
movss xmm3, dword [ecx + 8]
subss xmm2, xmm1
subss xmm3, dword [eax + 8]
movss dword [esp + 0x24], xmm1
movss xmm1, dword [ecx + 4]
subss xmm1, xmm0
movss dword [esp + 0x28], xmm0
movss dword [esp + 0x14], xmm2
movss dword [esp + 0xc], xmm3
cvtps2pd xmm5, xmm2
cvtps2pd xmm0, xmm1
movss dword [esp + 0x10], xmm1
ucomisd xmm0, xmm4
lahf
test ah, 0x44
jp 0x1003c480
ucomisd xmm5, xmm4
lahf
test ah, 0x44
jp 0x1003c480
movaps xmm0, xmm4
jmp 0x1003c4b2
movaps xmm1, xmm5
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [esp + 0x38]
movsd xmm4, qword [esp + 0x30]
movss xmm1, dword [esp + 0x10]
movss xmm2, dword [esp + 0x14]
comisd xmm4, xmm0
movss xmm3, dword [esp + 0xc]
jbe 0x1003c4b2
addsd xmm0, qword [esp + 0x40]
mulss xmm1, xmm1
mulss xmm2, xmm2
cvtsd2ss xmm0, xmm0
addss xmm1, xmm2
mulss xmm3, xmm3
movss dword [esp + 0x1c], xmm0
xorps xmm0, xmm0
addss xmm1, xmm3
sqrtss xmm0, xmm1
xorps xmm1, xmm1
sqrtss xmm1, xmm0
comiss xmm1, dword [0x100540bc]
jbe 0x1003c50d
mov eax, dword [esp + 0x18]
movss xmm2, dword [0x1005415c]
movaps xmm0, xmm2
mulss xmm0, xmm2
movss xmm1, dword [eax + 0x20]
mulss xmm1, xmm1
addss xmm0, xmm1
sqrtss xmm0, xmm0
jmp 0x1003c558
comiss xmm1, dword [0x100540b4]
jbe 0x1003c520
movss xmm2, dword [0x1005412c]
jmp 0x1003c539
cvtps2pd xmm0, xmm1
comisd xmm0, xmmword [0x10054088]
jbe 0x1003c5d5
movss xmm2, dword [0x10054110]
mov eax, dword [esp + 0x18]
movaps xmm0, xmm2
mulss xmm0, xmm2
movss xmm1, dword [eax + 0x20]
mulss xmm1, xmm1
addss xmm1, xmm0
xorps xmm0, xmm0
sqrtss xmm0, xmm1
lea esi, [eax + 0x18]
movss dword [esp + 0x10], xmm0
movss dword [esi], xmm2
cvtps2pd xmm1, xmm2
movaps xmm0, xmm4
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [esp + 0x38]
movsd xmm1, qword [esp + 0x30]
comisd xmm1, xmm0
jbe 0x1003c588
addsd xmm0, qword [esp + 0x40]
movss xmm2, dword [ebp + 0x14]
xorps xmm1, xmm1
subss xmm2, dword [esp + 0x1c]
cvtsd2ss xmm1, xmm0
comiss xmm2, dword [0x1005414c]
movaps xmm3, xmm2
movss dword [esp + 0x14], xmm1
mulss xmm3, dword [0x10053f24]
movss dword [esp + 0x1c], xmm2
movss dword [esp + 0xc], xmm3
ja 0x1003c63e
movss xmm0, dword [0x10054218]
comiss xmm0, xmm2
ja 0x1003c63e
xorps xmm3, xmm3
jmp 0x1003c69f
comiss xmm1, dword [0x10053fd0]
mov eax, dword [esp + 0x18]
lea esi, [eax + 0x18]
mov ecx, esi
jbe 0x1003c5f1
movss xmm2, dword [0x100540e0]
jmp 0x1003c5f9
movss xmm2, dword [0x100540d0]
movaps xmm0, xmm2
movss dword [ecx], xmm0
movss xmm1, dword [eax + 0x20]
mulss xmm0, xmm2
or dword [eax + 0x24], 0x20000
mulss xmm1, xmm1
addss xmm1, xmm0
xorps xmm0, xmm0
sqrtss xmm0, xmm1
cvtps2pd xmm1, xmm2
movss dword [esp + 0x10], xmm0
ucomisd xmm1, xmm4
lahf
test ah, 0x44
jp 0x1003c568
movaps xmm0, xmm4
jmp 0x1003c588
xorps xmm1, xmm1
comiss xmm1, xmm3
jbe 0x1003c657
movaps xmm0, xmm2
mulss xmm0, dword [0x100541e0]
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 + 0x20]
xorps xmm3, xmm3
movss xmm1, dword [esp + 0x18]
add esp, 4
comiss xmm3, xmm2
fstp dword [esp + 0xc]
movss xmm0, dword [esp + 0xc]
mulss xmm0, dword [0x10054178]
jbe 0x1003c693
addss xmm2, xmm0
jmp 0x1003c697
subss xmm2, xmm0
movss xmm0, dword [0x10054218]
addss xmm1, xmm2
comiss xmm1, dword [0x1005414c]
movaps xmm2, xmm1
movss dword [esp + 0x14], xmm1
mulss xmm2, dword [0x10053f24]
movss dword [esp + 0xc], xmm2
ja 0x1003c6c8
comiss xmm0, xmm1
jbe 0x1003c718
comiss xmm3, xmm2
jbe 0x1003c6de
movaps xmm0, xmm1
mulss xmm0, dword [0x100541e0]
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 + 0x18]
xorps xmm0, xmm0
add esp, 4
comiss xmm0, xmm1
fstp dword [esp + 0xc]
movss xmm0, dword [esp + 0xc]
mulss xmm0, dword [0x10054178]
jbe 0x1003c714
addss xmm1, xmm0
jmp 0x1003c718
subss xmm1, xmm0
mulss xmm1, dword [0x10053f3c]
movaps xmm0, xmm1
call fcn.10044330
mov eax, dword [esp + 0x18]
movaps xmm1, xmm0
movss xmm3, dword [esp + 0x24]
movsd xmm2, qword [0x10054008]
shufps xmm1, xmm0, 1
mulss xmm1, dword [esp + 0x10]
mulss xmm0, dword [esp + 0x10]
movss dword [esi], xmm1
cvtps2pd xmm3, xmm3
movss dword [eax + 0x1c], xmm0
mov eax, dword [edi + 0x10]
movss xmm1, dword [eax]
cvtps2pd xmm1, xmm1
movaps xmm0, xmm1
addsd xmm0, xmm2
comisd xmm0, xmm3
jb 0x1003c837
subsd xmm1, xmm2
comisd xmm3, xmm1
jb 0x1003c837
movss xmm1, dword [eax + 4]
movss xmm3, dword [esp + 0x28]
cvtps2pd xmm1, xmm1
cvtps2pd xmm3, xmm3
movaps xmm0, xmm1
addsd xmm0, xmm2
comisd xmm0, xmm3
jb 0x1003c837
subsd xmm1, xmm2
comisd xmm3, xmm1
jb 0x1003c837
mov eax, dword [esp + 0x20]
movss xmm1, dword [eax + 0xec]
movss xmm2, dword [eax + 0xf0]
movss xmm0, dword [eax + 0xf4]
mulss xmm2, xmm2
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm2, xmm1
addss xmm2, xmm0
movss xmm0, dword [0x100540d8]
comiss xmm0, xmm2
jb 0x1003c837
movss xmm0, dword [0x102ff3cc]
movss xmm2, dword [0x10053fa4]
comiss xmm2, xmm0
jbe 0x1003c830
movss xmm1, dword [0x100541e8]
comiss xmm0, xmm1
jbe 0x1003c830
movss xmm0, dword [0x102ff3d0]
comiss xmm2, xmm0
jbe 0x1003c830
comiss xmm0, xmm1
jbe 0x1003c830
mov dword [edi + 0xc], 2
mov byte [edi + 0x20], 0
jmp 0x1003c837
mov dword [edi + 0x1c], 3
mov esi, dword [0x10110af4]
cmp dword [edi + 0x1c], 3
jne 0x1003c9d1
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + esi*4]
mov eax, dword [0x102ff3c8]
cmp eax, dword [ecx + 4]
jle 0x1003c880
push 0x102ff3c8
call fcn.1004362f
add esp, 4
cmp dword [0x102ff3c8], 0xffffffff
jne 0x1003c880
push 0x102ff3c8
call fcn.100435e5
add esp, 4
mov ecx, dword [0x10111a70]
push 0x102ff3b8
mov eax, dword [ecx]
mov eax, dword [eax + 0x4c]
call eax
mov eax, dword [edi]
movss xmm6, dword [0x102ff3b8]
movss xmm4, dword [0x1005414c]
movss xmm7, dword [0x102ff3bc]
movss xmm1, dword [eax]
movss xmm0, dword [eax + 4]
subss xmm1, xmm6
movss xmm5, dword [eax + 8]
subss xmm0, xmm7
subss xmm5, dword [0x102ff3c0]
movss xmm2, dword [0x10054178]
comiss xmm1, xmm4
jbe 0x1003c8db
subss xmm1, xmm2
comiss xmm0, xmm4
jbe 0x1003c8e4
subss xmm0, xmm2
movss xmm3, dword [0x10054218]
comiss xmm3, xmm1
movss dword [esp + 0x10], xmm1
jbe 0x1003c901
addss xmm1, xmm2
movss dword [esp + 0x10], xmm1
comiss xmm3, xmm0
movss dword [esp + 0x14], xmm0
jbe 0x1003c916
addss xmm0, xmm2
movss dword [esp + 0x14], xmm0
mulss xmm1, dword [0x10053f60]
mulss xmm0, dword [0x10053f60]
mulss xmm5, dword [0x10053f60]
addss xmm1, xmm6
addss xmm0, xmm7
addss xmm5, dword [0x102ff3c0]
comiss xmm1, xmm4
movss dword [ebp + 0x10], xmm1
movss dword [ebp + 0x14], xmm0
movss dword [ebp + 0x18], xmm5
jbe 0x1003c95b
subss xmm1, xmm2
movss dword [ebp + 0x10], xmm1
comiss xmm0, xmm4
jbe 0x1003c969
subss xmm0, xmm2
movss dword [ebp + 0x14], xmm0
comiss xmm3, xmm1
jbe 0x1003c977
addss xmm1, xmm2
movss dword [ebp + 0x10], xmm1
comiss xmm3, xmm0
jbe 0x1003c985
addss xmm0, xmm2
movss dword [ebp + 0x14], xmm0
mov ecx, dword [0x10111a70]
lea edx, [ebp + 0x10]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x50]
call eax
movss xmm0, dword [esp + 0x10]
movss xmm2, dword [0x10053fa4]
comiss xmm2, xmm0
jbe 0x1003c9d1
movss xmm1, dword [0x100541e8]
comiss xmm0, xmm1
jbe 0x1003c9d1
movss xmm0, dword [esp + 0x14]
comiss xmm2, xmm0
jbe 0x1003c9d1
comiss xmm0, xmm1
jbe 0x1003c9d1
mov dword [edi + 0xc], 2
mov byte [edi + 0x20], 0
cmp dword [edi + 0xc], 1
jne 0x1003cab8
cmp byte [0x102ff3d8], 0
jne 0x1003c9ff
mov byte [edi + 0x20], 0
cmp dword [0x1010eec0], 1
jge 0x1003c9f8
mov dword [edi + 8], 0
mov byte [0x102ff3d8], 1
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0x10]
lea esi, [ecx + ecx*2]
mov ecx, dword [eax]
mov dword [edx + esi*4], ecx
mov ecx, dword [eax + 4]
mov dword [edx + esi*4 + 4], ecx
mov eax, dword [eax + 8]
mov dword [edx + esi*4 + 8], eax
mov eax, dword [edi + 8]
mov ecx, dword [edi]
mov esi, dword [esp + 0x18]
lea edx, [eax + eax*8]
mov eax, dword [esi + 0x24]
mov dword [ecx + edx*4 + 0x18], eax
mov eax, dword [edi + 8]
mov ecx, dword [edi]
lea edx, [eax + eax*8]
mov eax, dword [esi + 0x20]
mov dword [ecx + edx*4 + 0x14], eax
mov eax, dword [edi + 8]
mov ecx, dword [edi]
lea edx, [eax + eax*8]
mov eax, dword [esi + 0x1c]
mov dword [ecx + edx*4 + 0x10], eax
mov eax, dword [edi + 8]
mov ecx, dword [edi]
lea edx, [eax + eax*8]
mov eax, dword [esi + 0x18]
mov dword [ecx + edx*4 + 0xc], eax
mov eax, dword [edi + 8]
movss xmm0, dword [ebp + 0x10]
lea ecx, [eax + eax*8]
mov eax, dword [edi]
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 [edi + 8]
mov ecx, dword [edi]
lea edx, [eax + eax*8]
mov eax, dword [esi + 0x30]
mov dword [ecx + edx*4 + 0x20], eax
mov eax, dword [edi + 8]
mov ecx, dword [edi]
lea edx, [eax + eax*8]
mov eax, dword [esi + 0x2c]
mov dword [ecx + edx*4 + 0x1c], eax
mov eax, dword [edi + 8]
mov dword [edi + 0x14], eax
inc eax
mov dword [edi + 8], eax
jmp 0x1003cac3
mov esi, dword [esp + 0x18]
mov byte [0x102ff3d8], 0
cmp dword [edi + 0xc], 2
jne 0x1003cef8
cmp byte [0x102ff3d9], 0
jne 0x1003caec
mov dword [edi + 8], 0
xor ecx, ecx
mov byte [edi + 0x20], 0
mov byte [0x102ff3d9], 1
jmp 0x1003caef
mov ecx, dword [edi + 8]
mov eax, dword [0x1010eec0]
test eax, eax
jle 0x1003cb03
cmp ecx, eax
jl 0x1003cb03
mov dword [edi + 0xc], 1
cmp ecx, dword [edi + 0x14]
jl 0x1003cb18
xor eax, eax
mov edx, 3
cmp byte [edi + 0x18], al
cmovne eax, edx
mov dword [edi + 0xc], eax
mov eax, dword [edi]
lea ecx, [ecx + ecx*8]
mov eax, dword [eax + ecx*4 + 0x18]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 8]
lea ecx, [eax + eax*8]
mov eax, dword [edi]
mov eax, dword [eax + ecx*4 + 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 8]
lea ecx, [eax + eax*8]
mov eax, dword [edi]
movss xmm3, dword [eax + ecx*4 + 0x10]
movss dword [esi + 0x1c], xmm3
mov eax, dword [edi + 8]
lea ecx, [eax + eax*8]
mov eax, dword [edi]
movss xmm2, dword [eax + ecx*4 + 0xc]
movss dword [esi + 0x18], xmm2
movaps xmm1, xmm2
mov eax, dword [edi + 8]
mulss xmm1, xmm2
lea ecx, [eax + eax*8]
mov eax, dword [edi]
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 + 0x28], xmm0
movaps xmm0, xmm3
mulss xmm0, xmm3
mov eax, dword [eax + ecx*4 + 0x20]
mov dword [esi + 0x30], eax
mov eax, dword [edi + 8]
addss xmm1, xmm0
movss dword [esp + 0x10], xmm5
xorps xmm0, xmm0
movss dword [esp + 0x18], xmm4
lea ecx, [eax + eax*8]
mov eax, dword [edi]
sqrtss xmm0, xmm1
mov eax, dword [eax + ecx*4 + 0x1c]
mov dword [esi + 0x2c], eax
cvtps2pd xmm1, xmm2
movss dword [esp + 0x1c], xmm0
movaps xmm0, xmm5
cvtps2pd xmm2, xmm3
unpcklps xmm0, xmm4
movq qword [ebp + 0x10], xmm0
movq qword [esp + 0x54], xmm0
movsd xmm0, qword [esp + 0x30]
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jp 0x1003cbf9
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jnp 0x1003cc1f
movaps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [esp + 0x38]
movsd xmm1, qword [esp + 0x30]
movss xmm4, dword [esp + 0x18]
comisd xmm1, xmm0
jbe 0x1003cc1f
addsd xmm0, qword [esp + 0x40]
movss xmm2, dword [0x1010eebc]
movss xmm5, dword [0x1005414c]
subss xmm4, xmm2
comiss xmm2, xmm5
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x18], xmm4
movss dword [esp + 0x20], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [0x10053f24]
movss dword [ebp + 0x14], xmm4
movss dword [esp + 0xc], xmm0
ja 0x1003cc75
movss xmm3, dword [0x10054218]
comiss xmm3, xmm2
ja 0x1003cc75
movss xmm1, dword [0x10054178]
jmp 0x1003cce4
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x1003cc8e
movaps xmm0, xmm2
mulss xmm0, dword [0x100541e0]
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 [0x1010eebc]
xorps xmm0, xmm0
movss xmm1, dword [0x10054178]
add esp, 4
movss xmm4, dword [esp + 0x18]
movss xmm3, dword [0x10054218]
movss xmm5, dword [0x1005414c]
comiss xmm0, xmm2
fstp dword [esp + 0xc]
movss xmm0, dword [esp + 0xc]
mulss xmm0, xmm1
jbe 0x1003cce0
addss xmm2, xmm0
jmp 0x1003cce4
subss xmm2, xmm0
comiss xmm2, dword [0x10054120]
ja 0x1003ccfa
movss xmm0, dword [0x1005420c]
comiss xmm0, xmm2
jbe 0x1003cd12
cmp byte [0x1010eeba], 0
je 0x1003cd12
movss xmm0, dword [0x1005411c]
movss dword [ebp + 0x10], xmm0
jmp 0x1003cd18
movss xmm0, dword [esp + 0x10]
cmp byte [0x1010eeb9], 0
je 0x1003cd44
movq xmm0, qword [esp + 0x48]
mov eax, dword [esp + 0x2c]
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 0x1003cd4a
movss xmm2, dword [esp + 0x28]
comiss xmm0, xmm5
jbe 0x1003cd58
subss xmm0, xmm1
movss dword [ebp + 0x10], xmm0
comiss xmm3, xmm0
jbe 0x1003cd66
addss xmm0, xmm1
movss dword [ebp + 0x10], xmm0
comiss xmm4, xmm5
jbe 0x1003cd74
subss xmm4, xmm1
movss dword [ebp + 0x14], xmm4
comiss xmm3, xmm4
jbe 0x1003cd82
addss xmm4, xmm1
movss dword [ebp + 0x14], xmm4
comiss xmm2, xmm5
jbe 0x1003cd90
subss xmm2, xmm1
movss dword [ebp + 0x18], xmm2
comiss xmm3, xmm2
jbe 0x1003cd9e
addss xmm2, xmm1
movss dword [ebp + 0x18], xmm2
mov ecx, dword [0x10111a70]
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 + 0x58]
comiss xmm2, dword [0x1005414c]
movaps xmm1, xmm2
movss dword [esp + 0x2c], xmm2
mulss xmm1, dword [0x10053f24]
movss dword [esp + 0xc], xmm1
ja 0x1003cdec
movss xmm0, dword [0x10054218]
comiss xmm0, xmm2
ja 0x1003cdec
xorps xmm3, xmm3
jmp 0x1003ce47
xorps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x1003ce05
movaps xmm0, xmm2
mulss xmm0, dword [0x100541e0]
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 + 0x30]
xorps xmm3, xmm3
fstp dword [esp + 0x10]
movss xmm0, dword [esp + 0x10]
add esp, 4
comiss xmm3, xmm2
mulss xmm0, dword [0x10054178]
jbe 0x1003ce3b
addss xmm2, xmm0
jmp 0x1003ce3f
subss xmm2, xmm0
movss xmm0, dword [0x10054218]
movss xmm1, dword [esp + 0x20]
addss xmm1, xmm2
comiss xmm1, dword [0x1005414c]
movaps xmm2, xmm1
movss dword [esp + 0x20], xmm1
mulss xmm2, dword [0x10053f24]
movss dword [esp + 0xc], xmm2
ja 0x1003ce76
comiss xmm0, xmm1
jbe 0x1003cec6
comiss xmm3, xmm2
jbe 0x1003ce8c
movaps xmm0, xmm1
mulss xmm0, dword [0x100541e0]
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 + 0x24]
xorps xmm0, xmm0
add esp, 4
comiss xmm0, xmm1
fstp dword [esp + 0xc]
movss xmm0, dword [esp + 0xc]
mulss xmm0, dword [0x10054178]
jbe 0x1003cec2
addss xmm1, xmm0
jmp 0x1003cec6
subss xmm1, xmm0
mulss xmm1, dword [0x10053f3c]
movaps xmm0, xmm1
call fcn.10044330
movaps xmm1, xmm0
shufps xmm1, xmm0, 1
mulss xmm1, dword [esp + 0x1c]
mulss xmm0, dword [esp + 0x1c]
movss dword [esi + 0x18], xmm1
movss dword [esi + 0x1c], xmm0
inc dword [edi + 8]
jmp 0x1003ceff
mov byte [0x102ff3d9], 0
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x1003cf1d
cmp byte [0x102ff3da], al
jne 0x1003cf2e
mov dword [edi + 8], eax
mov byte [edi + 0x20], al
mov byte [0x102ff3da], 1
jmp 0x1003cf2e
mov byte [0x102ff3da], 0
cmp eax, 2
je 0x1003cf38
cmp eax, 1
je 0x1003cf38
mov dword [0x1010eec0], 0
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
xor ecx, esp
call fcn.1004305e
mov esp, ebp
pop ebp
ret 0x14