Function at 0x1003e540
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 0x1003e573
mov byte [ebp - 5], 0
cmp eax, 5
jne 0x1003e577
mov byte [ebp - 5], 1
cmp ecx, ebx
jne 0x1003e584
cmp edx, dword [ebp + 0x14]
jne 0x1003e584
xor al, al
jmp 0x1003e586
mov al, 1
movss xmm0, dword [ebp + 0x1c]
ucomiss xmm0, dword [0x1017f0d8]
mov byte [ebp - 6], al
lahf
test ah, 0x44
jnp 0x1003e5d3
cmp byte [ebp - 5], 0
je 0x1003e5d3
test al, al
je 0x1003e5d3
mov edi, ebx
mov ebx, dword [ebp + 0x14]
sub edi, ecx
mov ecx, edi
sbb ebx, edx
mov edx, ebx
call fcn.1006dad0
movss xmm1, dword [0x1017f334]
comiss xmm1, xmm0
jbe 0x1003e5ca
mov byte [ebp - 7], 1
jmp 0x1003e5e0
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 0x1003e627
cmp byte [ebp - 6], 0
je 0x1003e627
mov edx, ebx
mov ecx, edi
call fcn.1006dad0
movss xmm1, dword [0x1017f334]
xorps xmm6, xmm6
comiss xmm1, xmm0
jbe 0x1003e622
movaps xmm1, xmm0
mulss xmm1, dword [esi + 0x2c64]
movss dword [ebp - 0x14], xmm1
jmp 0x1003e627
movss xmm1, dword [ebp - 0x14]
mov eax, dword [esi + 0x1a34]
xorps xmm5, xmm5
cmp eax, 1
jne 0x1003e6b2
test esi, esi
jne 0x1003e640
push esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
movss xmm0, dword [esi + 0xe0]
movss xmm2, dword [0x1017f3a8]
comiss xmm0, xmm2
movss xmm3, dword [esi + 0xe4]
jb 0x1003e889
comiss xmm3, xmm2
jb 0x1003e889
movss xmm0, dword [esi + 0x434]
comiss xmm0, dword [0x1017f0d8]
jbe 0x1003e889
cmp byte [esi + 0xfa], 0
movss xmm5, dword [esi + 0x370]
je 0x1003e698
mulss xmm5, dword [0x1017f024]
cmp byte [esi + 0xf9], 0
je 0x1003e889
mulss xmm5, dword [0x1017f1a4]
jmp 0x1003e889
cmp eax, 2
jne 0x1003e889
cmp byte [ebp - 5], 0
je 0x1003e6cd
mov ecx, dword [ebp + 0x18]
call fcn.10135de0
mov edx, eax
jmp 0x1003e6cf
xor edx, edx
movss xmm4, dword [esi + 0x1490]
lea eax, [esi + 0x18]
comiss xmm6, xmm4
mov dword [ebp - 0x18], eax
movss xmm5, dword [0x1017f06c]
movss xmm0, dword [0x1017f0c0]
jbe 0x1003e6f7
xorps xmm7, xmm7
jmp 0x1003e733
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.10116eb0
movss xmm0, dword [0x1017f0c0]
movd xmm7, eax
lea eax, [esi + 0x18]
cvtdq2ps xmm7, xmm7
mov dword [ebp - 0x18], eax
movss xmm4, dword [esi + 0x148c]
comiss xmm6, xmm4
jbe 0x1003e745
xorps xmm0, xmm0
jmp 0x1003e773
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.10116eb0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm7, xmm0
movss xmm0, dword [esi + 0x145c]
comiss xmm6, xmm0
addss xmm7, xmm6
jbe 0x1003e78d
xorps xmm5, xmm5
jmp 0x1003e7bf
mov eax, dword [ebp - 0x18]
movaps xmm1, xmm0
movss xmm3, dword [esi + 0x8c]
movss xmm2, dword [esi + 0x88]
mulss xmm2, dword [0x1017f0c0]
subss xmm1, dword [eax]
mulss xmm3, xmm5
call fcn.10116eb0
movd xmm5, eax
cvtdq2ps xmm5, xmm5
movss xmm0, dword [esi + 0x1458]
comiss xmm6, xmm0
jbe 0x1003e7d1
xorps xmm0, xmm0
jmp 0x1003e807
mov eax, dword [ebp - 0x18]
movaps xmm1, xmm0
movss xmm3, dword [esi + 0x8c]
movss xmm2, dword [esi + 0x88]
mulss xmm3, dword [0x1017f06c]
subss xmm1, dword [eax]
mulss xmm2, dword [0x1017f0c0]
call fcn.10116eb0
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 0x1003e82e
mulss xmm5, dword [0x1017f050]
movss dword [ebp - 0xc], xmm5
movss xmm0, dword [esi + 0x338]
comiss xmm0, xmm6
movss xmm0, dword [0x1017f1a4]
jbe 0x1003e84c
mulss xmm5, xmm0
movss dword [ebp - 0xc], xmm5
test edx, edx
jns 0x1003e85a
movss xmm0, dword [0x1017eff0]
jmp 0x1003e880
cmp edx, 0xa
jge 0x1003e86a
movss xmm0, dword [edx*4 + 0x1017e5d0]
jmp 0x1003e880
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 0x1003e8d7
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
cmp edx, dword [ebp + 0x14]
jb 0x1003e8b7
ja 0x1003e8b2
cmp eax, dword [ebp + 0x10]
jb 0x1003e8b7
comiss xmm5, xmm6
ja 0x1003e8d0
mov edi, dword [ebp + 0xc]
cmp edx, edi
ja 0x1003e8da
jb 0x1003e8c7
mov edx, dword [ebp + 8]
cmp eax, edx
ja 0x1003e8da
comiss xmm6, xmm5
jbe 0x1003e8da
mov dl, 1
jmp 0x1003e8dc
mov edi, dword [ebp + 0xc]
mov dl, 1
jmp 0x1003e8dc
mov edi, dword [ebp + 0xc]
xor dl, dl
cmp byte [ebp - 7], 0
je 0x1003e906
comiss xmm6, xmm5
jbe 0x1003e8f4
movss xmm0, dword [esi + 0x2c60]
comiss xmm0, xmm6
ja 0x1003e902
comiss xmm5, xmm6
jbe 0x1003e906
comiss xmm6, dword [esi + 0x2c60]
jbe 0x1003e906
mov al, 1
jmp 0x1003e908
xor al, al
test bl, bl
jne 0x1003e939
test dl, dl
jne 0x1003e939
test al, al
jne 0x1003e939
ucomiss xmm5, xmm6
lahf
test ah, 0x44
jnp 0x1003e94a
movaps xmm0, xmm5
mov byte [esi + 0x2c5c], 1
addss xmm0, dword [esi + 0x2c60]
movss dword [esi + 0x2c60], xmm0
jmp 0x1003e94a
mov dword [esi + 0x2c60], 0
mov byte [esi + 0x2c5c], 0
cmp byte [esi + 0x2c5c], 0
je 0x1003ebc1
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 0x1003ea88
sub eax, ebx
sbb ecx, edi
mov edx, ecx
mov ecx, eax
call fcn.1006da30
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
movsd qword [ebp - 0x2c], xmm0
call fcn.1006da30
movsd xmm1, qword [ebp - 0x2c]
divsd xmm1, xmm0
movss xmm2, dword [ebp + 0x1c]
cvtps2pd xmm2, xmm2
movaps xmm0, xmm1
movsd xmm1, qword [0x1017f128]
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.1006dad0
movss xmm1, dword [esi + 0x2c60]
divss xmm1, xmm0
xorps xmm0, xmm0
cvtps2pd xmm1, xmm1
addsd xmm1, qword [ebp - 0x2c]
cvtpd2ps xmm1, xmm1
comiss xmm0, xmm1
ja 0x1003e9fd
movss xmm0, dword [0x1017f0d8]
minss xmm0, xmm1
movss xmm1, dword [ebp + 0x1c]
call fcn.1000d060
call fcn.1006d800
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edx
push eax
call fcn.1006dba0
mov ecx, dword [ebp + 0x18]
add eax, ebx
adc edx, edi
push edx
mov edx, dword [ebp - 0x1c]
push eax
call fcn.10041c70
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.1006da30
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
movsd qword [ebp - 0x24], xmm0
call fcn.1006da30
movsd xmm1, qword [ebp - 0x24]
divsd xmm1, xmm0
movsd xmm2, qword [0x1017f128]
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]
cvtsd2ss xmm0, xmm0
jmp 0x1003eac9
movss xmm0, dword [esi + 0x2c60]
call fcn.1006d800
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.10041c70
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.1006db50
movss xmm1, dword [esi + 0x2c60]
mov eax, dword [ebp - 0x10]
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 0x1003eaf5
cmp eax, edi
je 0x1003eba0
cmp byte [ebp - 6], 0
je 0x1003eba8
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp edi, esi
jb 0x1003eb4a
ja 0x1003eb0f
cmp ebx, edx
jb 0x1003eb4a
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x1c], eax
cmp edi, eax
jb 0x1003eb5e
ja 0x1003eb1f
cmp ebx, ecx
jbe 0x1003eb5e
movss xmm0, dword [ebp - 0xc]
xorps xmm1, xmm1
comiss xmm1, xmm0
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x1c], eax
jbe 0x1003eb66
cmp byte [ebp - 5], 0
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x1c], eax
jne 0x1003eb66
mov ebx, edx
mov dword [ebp + 0xc], ecx
mov edi, esi
mov dword [ebp + 0x1c], eax
jmp 0x1003eb66
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 0x1003eb66
movss xmm0, dword [ebp - 0xc]
xorps xmm1, xmm1
mov edx, dword [ebp + 0x14]
cmp edi, edx
ja 0x1003ebb9
jb 0x1003eb74
cmp ebx, dword [ebp + 0x10]
ja 0x1003ebb9
mov esi, ecx
mov edx, eax
cmp edi, eax
ja 0x1003eba0
jb 0x1003eb82
cmp ebx, ecx
jae 0x1003eba0
comiss xmm0, xmm1
jbe 0x1003eba0
cmp byte [ebp - 5], 0
mov eax, ecx
mov ecx, dword [ebp + 0x1c]
mov edx, ecx
jne 0x1003eba0
mov edx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov edi, edx
mov esi, eax
mov edx, ecx
cmp esi, ebx
jne 0x1003eba8
cmp edx, edi
je 0x1003ebc1
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 0x1003eb97
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret