Function at 0x1003e4b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
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 - 0x24], eax
push esi
mov esi, dword [0x101e6b78]
push edi
cmp eax, 4
je 0x1003e4e3
mov byte [ebp - 5], 0
cmp eax, 5
jne 0x1003e4e7
mov byte [ebp - 5], 1
cmp ecx, ebx
jne 0x1003e4f4
cmp edx, dword [ebp + 0x14]
jne 0x1003e4f4
xor al, al
jmp 0x1003e4f6
mov al, 1
movss xmm0, dword [ebp + 0x1c]
ucomiss xmm0, dword [0x1017f158]
mov byte [ebp - 6], al
lahf
test ah, 0x44
jnp 0x1003e547
cmp byte [ebp - 5], 0
je 0x1003e547
test al, al
je 0x1003e547
mov edi, ebx
mov ebx, dword [ebp + 0x14]
sub edi, ecx
mov ecx, edi
sbb ebx, edx
mov edx, ebx
call fcn.1006da40
movss xmm1, dword [0x1017f3c0]
cvtsd2ss xmm0, xmm0
comiss xmm1, xmm0
jbe 0x1003e53e
mov byte [ebp - 7], 1
jmp 0x1003e554
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 0x1003e59f
cmp byte [ebp - 6], 0
je 0x1003e59f
mov edx, ebx
mov ecx, edi
call fcn.1006da40
xorps xmm1, xmm1
xorps xmm6, xmm6
cvtsd2ss xmm1, xmm0
movss xmm0, dword [0x1017f3c0]
comiss xmm0, xmm1
jbe 0x1003e59a
mulss xmm1, dword [esi + 0x2c64]
movss dword [ebp - 0x14], xmm1
jmp 0x1003e59f
movss xmm1, dword [ebp - 0x14]
mov eax, dword [esi + 0x1a34]
xorps xmm5, xmm5
cmp eax, 1
jne 0x1003e62a
test esi, esi
jne 0x1003e5b8
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 0x1003e801
comiss xmm3, xmm2
jb 0x1003e801
movss xmm0, dword [esi + 0x434]
comiss xmm0, dword [0x1017f158]
jbe 0x1003e801
cmp byte [esi + 0xfa], 0
movss xmm5, dword [esi + 0x370]
je 0x1003e610
mulss xmm5, dword [0x1017f0a4]
cmp byte [esi + 0xf9], 0
je 0x1003e801
mulss xmm5, dword [0x1017f224]
jmp 0x1003e801
cmp eax, 2
jne 0x1003e801
cmp byte [ebp - 5], 0
je 0x1003e645
mov ecx, dword [ebp + 0x18]
call fcn.10135cf0
mov edx, eax
jmp 0x1003e647
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 0x1003e66f
xorps xmm7, xmm7
jmp 0x1003e6ab
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 0x1003e6bd
xorps xmm0, xmm0
jmp 0x1003e6eb
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 0x1003e705
xorps xmm5, xmm5
jmp 0x1003e737
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 0x1003e749
xorps xmm0, xmm0
jmp 0x1003e77f
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 0x1003e7a6
mulss xmm5, dword [0x1017f0d0]
movss dword [ebp - 0xc], xmm5
movss xmm0, dword [esi + 0x338]
comiss xmm0, xmm6
movss xmm0, dword [0x1017f224]
jbe 0x1003e7c4
mulss xmm5, xmm0
movss dword [ebp - 0xc], xmm5
test edx, edx
jns 0x1003e7d2
movss xmm0, dword [0x1017f070]
jmp 0x1003e7f8
cmp edx, 0xa
jge 0x1003e7e2
movss xmm0, dword [edx*4 + 0x1017e650]
jmp 0x1003e7f8
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 0x1003e84f
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
cmp edx, dword [ebp + 0x14]
jb 0x1003e82f
ja 0x1003e82a
cmp eax, dword [ebp + 0x10]
jb 0x1003e82f
comiss xmm5, xmm6
ja 0x1003e848
mov edi, dword [ebp + 0xc]
cmp edx, edi
ja 0x1003e852
jb 0x1003e83f
mov edx, dword [ebp + 8]
cmp eax, edx
ja 0x1003e852
comiss xmm6, xmm5
jbe 0x1003e852
mov dl, 1
jmp 0x1003e854
mov edi, dword [ebp + 0xc]
mov dl, 1
jmp 0x1003e854
mov edi, dword [ebp + 0xc]
xor dl, dl
cmp byte [ebp - 7], 0
je 0x1003e87e
comiss xmm6, xmm5
jbe 0x1003e86c
movss xmm0, dword [esi + 0x2c60]
comiss xmm0, xmm6
ja 0x1003e87a
comiss xmm5, xmm6
jbe 0x1003e87e
comiss xmm6, dword [esi + 0x2c60]
jbe 0x1003e87e
mov al, 1
jmp 0x1003e880
xor al, al
test bl, bl
jne 0x1003e8b1
test dl, dl
jne 0x1003e8b1
test al, al
jne 0x1003e8b1
ucomiss xmm5, xmm6
lahf
test ah, 0x44
jnp 0x1003e8c2
movaps xmm0, xmm5
mov byte [esi + 0x2c5c], 1
addss xmm0, dword [esi + 0x2c60]
movss dword [esi + 0x2c60], xmm0
jmp 0x1003e8c2
mov dword [esi + 0x2c60], 0
mov byte [esi + 0x2c5c], 0
cmp byte [esi + 0x2c5c], 0
je 0x1003ebc8
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
sub edx, ebx
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
movss xmm1, dword [esi + 0x2c60]
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 - 0x1c], ecx
mov dword [ebp - 0x14], edx
je 0x1003ea57
sub eax, ebx
sbb ecx, edi
mov edx, ecx
mov ecx, eax
call fcn.1006da40
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
movsd qword [ebp - 0x34], xmm0
call fcn.1006da40
movsd xmm1, qword [ebp - 0x34]
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 - 0x34], xmm0
call fcn.1006da40
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss xmm0, dword [esi + 0x2c60]
divss xmm0, xmm1
cvtps2pd xmm1, xmm0
xorps xmm0, xmm0
addsd xmm1, qword [ebp - 0x34]
cvtpd2ps xmm1, xmm1
comiss xmm0, xmm1
ja 0x1003e984
movss xmm0, dword [0x1017f158]
minss xmm0, xmm1
movss xmm1, dword [ebp + 0x1c]
call fcn.1000d060
movaps xmm1, xmm0
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
movss xmm0, dword [0x1017f3b8]
comiss xmm1, xmm0
jb 0x1003e9c5
subss xmm1, xmm0
comiss xmm0, xmm1
jbe 0x1003e9c5
mov eax, dword [ebp - 0x2c]
add eax, 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
adc eax, 0x80000000
mov dword [ebp - 0x20], eax
jmp 0x1003e9d1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
movaps xmm0, xmm1
call fcn.1006d920
push dword [ebp - 0x14]
add eax, dword [ebp - 0x1c]
push dword [ebp - 0x18]
adc edx, dword [ebp - 0x20]
push edx
push eax
call fcn.1006dae0
mov ecx, dword [ebp + 0x18]
add eax, ebx
adc edx, edi
push edx
mov edx, dword [ebp - 0x24]
push eax
call fcn.10041db0
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.1006da40
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
movsd qword [ebp - 0x2c], xmm0
call fcn.1006da40
movsd xmm1, qword [ebp - 0x2c]
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 - 0x34]
jmp 0x1003eacc
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
movss xmm0, dword [0x1017f3b8]
comiss xmm1, xmm0
jb 0x1003ea86
subss xmm1, xmm0
comiss xmm0, xmm1
jbe 0x1003ea86
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x28]
add edi, 0
adc ebx, 0x80000000
jmp 0x1003ea8c
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
movaps xmm0, xmm1
call fcn.1006d920
mov ecx, dword [ebp - 0x20]
add eax, edi
adc edx, ebx
add ecx, eax
mov eax, dword [ebp - 0x1c]
adc eax, edx
mov edx, dword [ebp - 0x24]
push eax
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.10041db0
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 0x1003eafc
cmp eax, edi
je 0x1003eba7
cmp byte [ebp - 6], 0
je 0x1003ebaf
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp edi, esi
jb 0x1003eb51
ja 0x1003eb16
cmp ebx, edx
jb 0x1003eb51
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x1c], eax
cmp edi, eax
jb 0x1003eb65
ja 0x1003eb26
cmp ebx, ecx
jbe 0x1003eb65
movss xmm0, dword [ebp - 0xc]
xorps xmm1, xmm1
comiss xmm1, xmm0
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x1c], eax
jbe 0x1003eb6d
cmp byte [ebp - 5], 0
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x1c], eax
jne 0x1003eb6d
mov ebx, edx
mov dword [ebp + 0xc], ecx
mov edi, esi
mov dword [ebp + 0x1c], eax
jmp 0x1003eb6d
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 0x1003eb6d
movss xmm0, dword [ebp - 0xc]
xorps xmm1, xmm1
mov edx, dword [ebp + 0x14]
cmp edi, edx
ja 0x1003ebc0
jb 0x1003eb7b
cmp ebx, dword [ebp + 0x10]
ja 0x1003ebc0
mov esi, ecx
mov edx, eax
cmp edi, eax
ja 0x1003eba7
jb 0x1003eb89
cmp ebx, ecx
jae 0x1003eba7
comiss xmm0, xmm1
jbe 0x1003eba7
cmp byte [ebp - 5], 0
mov eax, ecx
mov ecx, dword [ebp + 0x1c]
mov edx, ecx
jne 0x1003eba7
mov edx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov edi, edx
mov esi, eax
mov edx, ecx
cmp esi, ebx
jne 0x1003ebaf
cmp edx, edi
je 0x1003ebc8
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 0x1003eb9e
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret