Function at 0x1003de10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp + 0xc]
movss dword [ebp - 0x14], xmm2
mov dword [ebp - 0x1c], eax
push esi
mov esi, dword [0x101e6b78]
push edi
cmp eax, 4
je 0x1003de43
mov byte [ebp - 5], 0
cmp eax, 5
jne 0x1003de47
mov byte [ebp - 5], 1
cmp ecx, ebx
jne 0x1003de54
cmp edx, dword [ebp + 0x14]
jne 0x1003de54
xor al, al
jmp 0x1003de56
mov al, 1
movss xmm0, dword [ebp + 0x1c]
ucomiss xmm0, dword [0x1017f158]
mov byte [ebp - 6], al
lahf
test ah, 0x44
jnp 0x1003dea7
cmp byte [ebp - 5], 0
je 0x1003dea7
test al, al
je 0x1003dea7
mov edi, ebx
mov ebx, dword [ebp + 0x14]
sub edi, ecx
mov ecx, edi
sbb ebx, edx
mov edx, ebx
call fcn.1006da90
movss xmm1, dword [0x1017f3c0]
cvtsd2ss xmm0, xmm0
comiss xmm1, xmm0
jbe 0x1003de9e
mov byte [ebp - 7], 1
jmp 0x1003deb4
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov edi, ebx
mov byte [ebp - 7], 0
mov ebx, dword [ebp + 0x14]
sub edi, ecx
sbb ebx, edx
movss xmm1, dword [ebp - 0x14]
xorps xmm6, xmm6
ucomiss xmm1, xmm6
lahf
test ah, 0x44
jp 0x1003deff
cmp byte [ebp - 6], 0
je 0x1003deff
mov edx, ebx
mov ecx, edi
call fcn.1006da90
xorps xmm1, xmm1
xorps xmm6, xmm6
cvtsd2ss xmm1, xmm0
movss xmm0, dword [0x1017f3c0]
comiss xmm0, xmm1
jbe 0x1003defa
mulss xmm1, dword [esi + 0x2c64]
movss dword [ebp - 0x14], xmm1
jmp 0x1003deff
movss xmm1, dword [ebp - 0x14]
mov eax, dword [esi + 0x1a34]
xorps xmm5, xmm5
cmp eax, 1
jne 0x1003df8a
test esi, esi
jne 0x1003df18
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 0x1003e161
comiss xmm3, xmm2
jb 0x1003e161
movss xmm0, dword [esi + 0x434]
comiss xmm0, dword [0x1017f158]
jbe 0x1003e161
cmp byte [esi + 0xfa], 0
movss xmm5, dword [esi + 0x370]
je 0x1003df70
mulss xmm5, dword [0x1017f0a4]
cmp byte [esi + 0xf9], 0
je 0x1003e161
mulss xmm5, dword [0x1017f224]
jmp 0x1003e161
cmp eax, 2
jne 0x1003e161
cmp byte [ebp - 5], 0
je 0x1003dfa5
mov ecx, dword [ebp + 0x18]
call fcn.10135cf0
mov edx, eax
jmp 0x1003dfa7
xor edx, edx
movss xmm4, dword [esi + 0x1490]
lea eax, [esi + 0x18]
comiss xmm6, xmm4
mov dword [ebp - 0x18], eax
movss xmm5, dword [0x1017f0ec]
movss xmm0, dword [0x1017f140]
jbe 0x1003dfcf
xorps xmm7, xmm7
jmp 0x1003e00b
movss xmm3, dword [esi + 0x8c]
movaps xmm1, xmm4
movss xmm2, dword [esi + 0x88]
subss xmm1, dword [eax]
mulss xmm2, xmm0
movaps xmm0, xmm4
mulss xmm3, xmm5
call fcn.10116d70
movss xmm0, dword [0x1017f140]
movd xmm7, eax
lea eax, [esi + 0x18]
cvtdq2ps xmm7, xmm7
mov dword [ebp - 0x18], eax
movss xmm4, dword [esi + 0x148c]
comiss xmm6, xmm4
jbe 0x1003e01d
xorps xmm0, xmm0
jmp 0x1003e04b
movss xmm3, dword [esi + 0x8c]
movaps xmm1, xmm4
movss xmm2, dword [esi + 0x88]
subss xmm1, dword [eax]
mulss xmm2, xmm0
movaps xmm0, xmm4
mulss xmm3, xmm5
call fcn.10116d70
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm7, xmm0
movss xmm0, dword [esi + 0x145c]
comiss xmm6, xmm0
addss xmm7, xmm6
jbe 0x1003e065
xorps xmm5, xmm5
jmp 0x1003e097
mov eax, dword [ebp - 0x18]
movaps xmm1, xmm0
movss xmm3, dword [esi + 0x8c]
movss xmm2, dword [esi + 0x88]
mulss xmm2, dword [0x1017f140]
subss xmm1, dword [eax]
mulss xmm3, xmm5
call fcn.10116d70
movd xmm5, eax
cvtdq2ps xmm5, xmm5
movss xmm0, dword [esi + 0x1458]
comiss xmm6, xmm0
jbe 0x1003e0a9
xorps xmm0, xmm0
jmp 0x1003e0df
mov eax, dword [ebp - 0x18]
movaps xmm1, xmm0
movss xmm3, dword [esi + 0x8c]
movss xmm2, dword [esi + 0x88]
mulss xmm3, dword [0x1017f0ec]
subss xmm1, dword [eax]
mulss xmm2, dword [0x1017f140]
call fcn.10116d70
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm5, xmm0
movss xmm0, dword [esi + 0x334]
comiss xmm0, xmm6
addss xmm5, xmm7
movss dword [ebp - 0xc], xmm5
jbe 0x1003e106
mulss xmm5, dword [0x1017f0d0]
movss dword [ebp - 0xc], xmm5
movss xmm0, dword [esi + 0x338]
comiss xmm0, xmm6
movss xmm0, dword [0x1017f224]
jbe 0x1003e124
mulss xmm5, xmm0
movss dword [ebp - 0xc], xmm5
test edx, edx
jns 0x1003e132
movss xmm0, dword [0x1017f070]
jmp 0x1003e158
cmp edx, 0xa
jge 0x1003e142
movss xmm0, dword [edx*4 + 0x1017e650]
jmp 0x1003e158
neg edx
movd xmm1, edx
cvtdq2ps xmm1, xmm1
call fcn.1000d060
movss xmm5, dword [ebp - 0xc]
xorps xmm6, xmm6
movss xmm1, dword [ebp - 0x14]
maxss xmm1, xmm0
cmp byte [ebp - 6], 0
mov bl, byte [esi + 0x1a14]
mov ecx, dword [ebp - 0x10]
mulss xmm5, xmm1
movss dword [ebp - 0xc], xmm5
je 0x1003e1af
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
cmp edx, dword [ebp + 0x14]
jl 0x1003e18f
jg 0x1003e18a
cmp eax, dword [ebp + 0x10]
jb 0x1003e18f
comiss xmm5, xmm6
ja 0x1003e1a8
mov edi, dword [ebp + 0xc]
cmp edx, edi
jg 0x1003e1b2
jl 0x1003e19f
mov edx, dword [ebp + 8]
cmp eax, edx
ja 0x1003e1b2
comiss xmm6, xmm5
jbe 0x1003e1b2
mov dl, 1
jmp 0x1003e1b4
mov edi, dword [ebp + 0xc]
mov dl, 1
jmp 0x1003e1b4
mov edi, dword [ebp + 0xc]
xor dl, dl
cmp byte [ebp - 7], 0
je 0x1003e1de
comiss xmm6, xmm5
jbe 0x1003e1cc
movss xmm0, dword [esi + 0x2c60]
comiss xmm0, xmm6
ja 0x1003e1da
comiss xmm5, xmm6
jbe 0x1003e1de
comiss xmm6, dword [esi + 0x2c60]
jbe 0x1003e1de
mov al, 1
jmp 0x1003e1e0
xor al, al
test bl, bl
jne 0x1003e211
test dl, dl
jne 0x1003e211
test al, al
jne 0x1003e211
ucomiss xmm5, xmm6
lahf
test ah, 0x44
jnp 0x1003e222
movaps xmm0, xmm5
mov byte [esi + 0x2c5c], 1
addss xmm0, dword [esi + 0x2c60]
movss dword [esi + 0x2c60], xmm0
jmp 0x1003e222
mov dword [esi + 0x2c60], 0
mov byte [esi + 0x2c5c], 0
cmp byte [esi + 0x2c5c], 0
je 0x1003e4a0
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
sub edx, ebx
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x14]
sbb edx, edi
mov dword [ebp - 0x20], eax
cmp byte [ebp - 7], 0
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], edx
je 0x1003e363
sub eax, ebx
sbb ecx, edi
mov edx, ecx
mov ecx, eax
call fcn.1006da90
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
movsd qword [ebp - 0x2c], xmm0
call fcn.1006da90
movsd xmm1, qword [ebp - 0x2c]
divsd xmm1, xmm0
movss xmm2, dword [ebp + 0x1c]
cvtps2pd xmm2, xmm2
movaps xmm0, xmm1
movsd xmm1, qword [0x1017f1a8]
divsd xmm1, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_pow_precise
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
movsd qword [ebp - 0x2c], xmm0
call fcn.1006da90
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss xmm0, dword [esi + 0x2c60]
divss xmm0, xmm1
cvtps2pd xmm1, xmm0
xorps xmm0, xmm0
addsd xmm1, qword [ebp - 0x2c]
cvtpd2ps xmm1, xmm1
comiss xmm0, xmm1
ja 0x1003e2dc
movss xmm0, dword [0x1017f158]
minss xmm0, xmm1
movss xmm1, dword [ebp + 0x1c]
call fcn.1000d060
call fcn.1006d920
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edx
push eax
call fcn.1006dae0
mov ecx, dword [ebp + 0x18]
add eax, ebx
adc edx, edi
push edx
mov edx, dword [ebp - 0x1c]
push eax
call fcn.10041d20
mov ebx, eax
mov byte [esi + 0x2c5c], 0
add esp, 8
mov ecx, ebx
sub ecx, dword [ebp + 8]
mov edi, edx
sbb edx, dword [ebp + 0xc]
call fcn.1006da90
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
movsd qword [ebp - 0x24], xmm0
call fcn.1006da90
movsd xmm1, qword [ebp - 0x24]
divsd xmm1, xmm0
movsd xmm2, qword [0x1017f1a8]
movaps xmm0, xmm1
movss xmm1, dword [ebp + 0x1c]
cvtps2pd xmm1, xmm1
divsd xmm2, xmm1
movaps xmm1, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_pow_precise
subsd xmm0, qword [ebp - 0x2c]
jmp 0x1003e3a4
movss xmm0, dword [esi + 0x2c60]
call fcn.1006d920
mov ecx, dword [ebp - 0x20]
add ecx, eax
mov eax, dword [ebp - 0x28]
adc eax, edx
mov edx, dword [ebp - 0x1c]
push eax
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.10041d20
mov ebx, eax
mov byte [esi + 0x2c5c], 0
mov eax, dword [ebp - 0x10]
add esp, 8
mov ecx, ebx
mov edi, edx
sub ecx, dword [eax]
sbb edx, dword [eax + 4]
call fcn.1006da90
movss xmm1, dword [esi + 0x2c60]
mov eax, dword [ebp - 0x10]
cvtsd2ss xmm0, xmm0
subss xmm1, xmm0
movss dword [esi + 0x2c60], xmm1
mov ecx, dword [eax]
mov esi, ecx
mov eax, dword [eax + 4]
mov edx, eax
cmp ecx, ebx
jne 0x1003e3d4
cmp eax, edi
je 0x1003e47f
cmp byte [ebp - 6], 0
je 0x1003e487
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp edi, esi
jl 0x1003e429
jg 0x1003e3ee
cmp ebx, edx
jb 0x1003e429
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x1c], eax
cmp edi, eax
jl 0x1003e43d
jg 0x1003e3fe
cmp ebx, ecx
jbe 0x1003e43d
movss xmm0, dword [ebp - 0xc]
xorps xmm1, xmm1
comiss xmm1, xmm0
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x1c], eax
jbe 0x1003e445
cmp byte [ebp - 5], 0
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x1c], eax
jne 0x1003e445
mov ebx, edx
mov dword [ebp + 0xc], ecx
mov edi, esi
mov dword [ebp + 0x1c], eax
jmp 0x1003e445
movss xmm0, dword [ebp - 0xc]
xorps xmm1, xmm1
mov ebx, edx
mov dword [ebp + 0xc], ecx
mov edi, esi
mov dword [ebp + 0x1c], eax
jmp 0x1003e445
movss xmm0, dword [ebp - 0xc]
xorps xmm1, xmm1
mov edx, dword [ebp + 0x14]
cmp edi, edx
jg 0x1003e498
jl 0x1003e453
cmp ebx, dword [ebp + 0x10]
ja 0x1003e498
mov esi, ecx
mov edx, eax
cmp edi, eax
jg 0x1003e47f
jl 0x1003e461
cmp ebx, ecx
jae 0x1003e47f
comiss xmm0, xmm1
jbe 0x1003e47f
cmp byte [ebp - 5], 0
mov eax, ecx
mov ecx, dword [ebp + 0x1c]
mov edx, ecx
jne 0x1003e47f
mov edx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov edi, edx
mov esi, eax
mov edx, ecx
cmp esi, ebx
jne 0x1003e487
cmp edx, edi
je 0x1003e4a0
mov eax, dword [ebp - 0x10]
mov dword [eax], ebx
mov dword [eax + 4], edi
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
jmp 0x1003e476
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret