Function at 0x1003d320
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 8], edx
movaps xmm1, xmm2
movss dword [ebp - 0x18], xmm1
mov dword [ebp - 0x1c], eax
push esi
mov esi, dword [0x101e6b78]
push edi
mov edi, dword [ebp + 0xc]
cmp eax, 4
je 0x1003d353
cmp eax, 5
je 0x1003d353
xor dl, dl
jmp 0x1003d355
mov dl, 1
movss xmm4, dword [0x1017f158]
movss xmm3, dword [ebp + 0x14]
movss xmm2, dword [0x1017f3c0]
ucomiss xmm3, xmm4
mov byte [ebp - 1], dl
lahf
test ah, 0x44
jnp 0x1003d394
test dl, dl
je 0x1003d394
cmp ebx, edi
je 0x1003d394
mov ecx, edi
sub ecx, ebx
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
comiss xmm2, xmm0
jbe 0x1003d394
mov byte [ebp - 2], 1
jmp 0x1003d39c
mov ecx, edi
mov byte [ebp - 2], 0
sub ecx, ebx
xorps xmm6, xmm6
ucomiss xmm1, xmm6
lahf
test ah, 0x44
jp 0x1003d3c8
cmp ebx, edi
je 0x1003d3c8
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
comiss xmm2, xmm0
jbe 0x1003d3c8
movaps xmm1, xmm0
mulss xmm1, dword [esi + 0x2c64]
movss dword [ebp - 0x18], xmm1
mov eax, dword [esi + 0x1a34]
xorps xmm5, xmm5
cmp eax, 1
jne 0x1003d454
test esi, esi
jne 0x1003d3e1
push esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
movss xmm0, dword [esi + 0xe0]
movss xmm2, dword [0x1017f438]
comiss xmm0, xmm2
movss xmm3, dword [esi + 0xe4]
jb 0x1003d642
comiss xmm3, xmm2
jb 0x1003d642
movss xmm0, dword [esi + 0x434]
comiss xmm0, xmm4
jbe 0x1003d642
cmp byte [esi + 0xfa], 0
movss xmm5, dword [esi + 0x370]
je 0x1003d435
mulss xmm5, dword [0x1017f0a4]
cmp byte [esi + 0xf9], 0
movss xmm3, dword [ebp + 0x14]
je 0x1003d647
mulss xmm5, dword [0x1017f224]
jmp 0x1003d647
cmp eax, 2
jne 0x1003d647
test dl, dl
je 0x1003d46d
mov ecx, dword [ebp + 0x10]
call fcn.10135cf0
mov edx, eax
jmp 0x1003d46f
xor edx, edx
movss xmm0, dword [esi + 0x1490]
lea eax, [esi + 0x8c]
comiss xmm6, xmm0
lea ecx, [esi + 0x88]
mov dword [ebp - 0x10], eax
lea ebx, [esi + 0x18]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], ebx
movss xmm5, dword [0x1017f0ec]
movss xmm1, dword [0x1017f140]
jbe 0x1003d4a9
xorps xmm7, xmm7
jmp 0x1003d4ed
movss xmm2, dword [ecx]
movss xmm3, dword [eax]
mulss xmm2, xmm1
movaps xmm1, xmm0
subss xmm1, dword [esi + 0x18]
mulss xmm3, xmm5
call fcn.10116d70
movss xmm1, dword [0x1017f140]
lea ecx, [esi + 0x88]
lea ebx, [esi + 0x18]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], ebx
movd xmm7, eax
lea eax, [esi + 0x8c]
cvtdq2ps xmm7, xmm7
mov dword [ebp - 0x10], eax
movss xmm0, dword [esi + 0x148c]
comiss xmm6, xmm0
jbe 0x1003d4ff
xorps xmm0, xmm0
jmp 0x1003d525
movss xmm3, dword [eax]
movss xmm2, dword [ecx]
mov eax, dword [ebp - 0xc]
mulss xmm2, xmm1
movaps xmm1, xmm0
mulss xmm3, xmm5
subss xmm1, dword [eax]
call fcn.10116d70
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm7, xmm0
movss xmm0, dword [esi + 0x145c]
comiss xmm6, xmm0
addss xmm7, xmm6
jbe 0x1003d53f
xorps xmm5, xmm5
jmp 0x1003d56f
mov eax, dword [ebp - 0x10]
movaps xmm1, xmm0
movss xmm3, dword [eax]
mov eax, dword [ebp - 0x14]
mulss xmm3, xmm5
movss xmm2, dword [eax]
mov eax, dword [ebp - 0xc]
mulss xmm2, dword [0x1017f140]
subss xmm1, dword [eax]
call fcn.10116d70
movd xmm5, eax
cvtdq2ps xmm5, xmm5
movss xmm0, dword [esi + 0x1458]
comiss xmm6, xmm0
jbe 0x1003d581
xorps xmm0, xmm0
jmp 0x1003d5b5
mov eax, dword [ebp - 0x10]
movaps xmm1, xmm0
movss xmm3, dword [eax]
mov eax, dword [ebp - 0x14]
mulss xmm3, dword [0x1017f0ec]
movss xmm2, dword [eax]
mov eax, dword [ebp - 0xc]
mulss xmm2, dword [0x1017f140]
subss xmm1, dword [eax]
call fcn.10116d70
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov ebx, dword [ebp + 8]
subss xmm5, xmm0
movss xmm0, dword [esi + 0x334]
comiss xmm0, xmm6
addss xmm5, xmm7
movss dword [ebp - 0xc], xmm5
jbe 0x1003d5df
mulss xmm5, dword [0x1017f0d0]
movss dword [ebp - 0xc], xmm5
movss xmm0, dword [esi + 0x338]
comiss xmm0, xmm6
movss xmm0, dword [0x1017f224]
jbe 0x1003d5fd
mulss xmm5, xmm0
movss dword [ebp - 0xc], xmm5
test edx, edx
jns 0x1003d60b
movss xmm0, dword [0x1017f070]
jmp 0x1003d631
cmp edx, 0xa
jge 0x1003d61b
movss xmm0, dword [edx*4 + 0x1017e650]
jmp 0x1003d631
neg edx
movd xmm1, edx
cvtdq2ps xmm1, xmm1
call fcn.1000d060
movss xmm5, dword [ebp - 0xc]
xorps xmm6, xmm6
movss xmm1, dword [ebp - 0x18]
movss xmm4, dword [0x1017f158]
maxss xmm1, xmm0
movss xmm3, dword [ebp + 0x14]
mov dl, byte [esi + 0x1a14]
mulss xmm5, xmm1
movss dword [ebp - 0xc], xmm5
cmp ebx, edi
je 0x1003d675
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
cmp eax, edi
jl 0x1003d668
comiss xmm5, xmm6
ja 0x1003d671
cmp eax, ebx
jg 0x1003d675
comiss xmm6, xmm5
jbe 0x1003d675
mov cl, 1
jmp 0x1003d677
xor cl, cl
mov dh, byte [ebp - 2]
test dh, dh
je 0x1003d6a2
comiss xmm6, xmm5
jbe 0x1003d690
movss xmm0, dword [esi + 0x2c60]
comiss xmm0, xmm6
ja 0x1003d69e
comiss xmm5, xmm6
jbe 0x1003d6a2
comiss xmm6, dword [esi + 0x2c60]
jbe 0x1003d6a2
mov al, 1
jmp 0x1003d6a4
xor al, al
test dl, dl
jne 0x1003d6d5
test cl, cl
jne 0x1003d6d5
test al, al
jne 0x1003d6d5
ucomiss xmm5, xmm6
lahf
test ah, 0x44
jnp 0x1003d6e6
movaps xmm0, xmm5
mov byte [esi + 0x2c5c], 1
addss xmm0, dword [esi + 0x2c60]
movss dword [esi + 0x2c60], xmm0
jmp 0x1003d6e6
mov dword [esi + 0x2c60], 0
mov byte [esi + 0x2c5c], 0
cmp byte [esi + 0x2c5c], 0
je 0x1003d857
mov eax, dword [ebp - 8]
sub edi, ebx
mov dword [ebp + 8], edi
mov ecx, dword [eax]
test dh, dh
je 0x1003d7b0
sub ecx, ebx
xorps xmm0, xmm0
xorps xmm2, xmm2
movaps xmm1, xmm4
cvtsi2ss xmm2, edi
cvtsi2ss xmm0, ecx
divss xmm1, xmm3
divss xmm0, xmm2
call fcn.1000d060
movss xmm2, dword [esi + 0x2c60]
xorps xmm1, xmm1
cvtsi2ss xmm1, edi
movss dword [ebp - 0x18], xmm0
divss xmm2, xmm1
addss xmm2, xmm0
xorps xmm0, xmm0
comiss xmm0, xmm2
ja 0x1003d755
movss xmm0, dword [0x1017f158]
minss xmm0, xmm2
movss xmm1, dword [ebp + 0x14]
call fcn.1000d060
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x10]
cvttss2si eax, xmm0
imul eax, edi
add eax, ebx
push eax
call fcn.10041c00
movd xmm2, dword [ebp + 8]
mov edi, eax
movss xmm1, dword [0x1017f158]
mov ecx, edi
divss xmm1, dword [ebp + 0x14]
sub ecx, ebx
mov byte [esi + 0x2c5c], 0
add esp, 4
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm2, xmm2
divss xmm0, xmm2
call fcn.1000d060
subss xmm0, dword [ebp - 0x18]
jmp 0x1003d7de
cvttss2si eax, dword [esi + 0x2c60]
mov edx, dword [ebp - 0x1c]
add ecx, eax
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.10041c00
mov ecx, dword [ebp - 8]
add esp, 4
mov edi, eax
mov byte [esi + 0x2c5c], 0
sub eax, dword [ecx]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss xmm1, dword [esi + 0x2c60]
mov eax, edi
subss xmm1, xmm0
movss dword [esi + 0x2c60], xmm1
mov esi, dword [ebp - 8]
mov ecx, dword [esi]
mov edx, ecx
cmp ecx, edi
je 0x1003d848
mov edx, dword [ebp + 0xc]
cmp ebx, edx
je 0x1003d84c
movss xmm0, dword [ebp - 0xc]
xorps xmm1, xmm1
cmp edi, ebx
jl 0x1003d823
mov esi, ecx
cmp edi, ecx
jle 0x1003d827
comiss xmm1, xmm0
jbe 0x1003d827
cmp byte [ebp - 1], 0
jne 0x1003d827
mov eax, ebx
mov esi, ecx
cmp eax, edx
jg 0x1003d841
mov edx, ecx
cmp eax, ecx
jge 0x1003d845
comiss xmm0, xmm1
jbe 0x1003d845
cmp byte [ebp - 1], 0
mov edx, esi
jne 0x1003d845
mov edx, dword [ebp + 0xc]
mov eax, edx
mov edx, esi
mov esi, dword [ebp - 8]
cmp edx, eax
je 0x1003d857
mov dword [esi], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret