Function at 0x7de090
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov edi, ecx
test edx, edx
je 0x7defc1
cmp dword [ebp + 8], 0
je 0x7defc1
cmp dword [edi + 0x168], 0xfffffffe
je 0x7defc1
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x7de0e1
cmp dword [0x10171718], 0
je 0x7de0e1
mov eax, dword [esi + 0x28]
test eax, eax
jg 0x7de0e1
inc eax
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x3c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc0]
cmp dword [edi + 0x118], 0
movss xmm1, dword [edi + 0x10c]
je 0x7dee21
push ecx
movss dword [esp], xmm1
xor eax, eax
cmp byte [edi + 0xd5], al
mov ecx, 3
push 0xff
push dword [edi + 0x1c0]
cmovne eax, ecx
push dword [edi + 0x1bc]
push dword [edi + 0x1b8]
push dword [edi + 0x1b4]
push eax
push esi
push dword [edi + 0x190]
call fcn.007e2680
mov eax, dword [edi + 0x170]
cmp eax, 0xb
ja 0x7deee9
cmp dword [edi + 0x1cc], 0
je 0x7deee9
xor esi, esi
xor ebx, ebx
xor ecx, ecx
xor edx, edx
cmp eax, 3
je 0x7de57d
cmp eax, 7
je 0x7de57d
cmp eax, 0xb
je 0x7de57d
cmp eax, 1
je 0x7de441
cmp eax, 5
je 0x7de441
cmp eax, 9
je 0x7de441
test eax, eax
je 0x7de2f9
cmp eax, 4
je 0x7de2f9
cmp eax, 8
je 0x7de2f9
cmp eax, 2
je 0x7de1bd
cmp eax, 6
je 0x7de1bd
cmp eax, 0xa
jne 0x7de6b2
mov eax, dword [edi + 0x1a0]
mov ecx, dword [edi + 0x168]
movss xmm3, dword [edi + 0x10c]
movss xmm4, dword [0x1015a890]
mov dword [ebp + 8], eax
mov eax, dword [edi + 0x114]
mov edx, dword [eax + ecx*4]
mov ecx, dword [edi + 0x1b0]
mov esi, dword [edx + 0x28]
add esi, dword [edi + 0x1c4]
lea eax, [ecx + ecx]
mov ebx, dword [edx + 0x30]
add esi, ecx
mov ecx, dword [edi + 0x50]
sub ebx, eax
ucomiss xmm3, xmm4
lahf
test ah, 0x44
jp 0x7de214
movd xmm2, ecx
cvtdq2pd xmm2, xmm2
jmp 0x7de24a
movd xmm0, ecx
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, xmm3
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.008266e0
movss xmm3, dword [edi + 0x10c]
add esp, 8
movss xmm4, dword [0x1015a890]
fstp qword [ebp - 0x24]
movsd xmm2, qword [ebp - 0x24]
movd xmm0, dword [edi + 0x19c]
lea eax, [ebx + esi]
cvtdq2pd xmm0, xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
subsd xmm2, xmm0
comisd xmm1, xmm2
jbe 0x7de2e7
mov ecx, dword [edi + 0x50]
ucomiss xmm3, xmm4
lahf
test ah, 0x44
jp 0x7de281
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
jmp 0x7de2a7
movd xmm0, ecx
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, xmm3
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.008266e0
fstp qword [ebp - 0x24]
movsd xmm1, qword [ebp - 0x24]
add esp, 8
movd xmm0, esi
cvtdq2pd xmm0, xmm0
mov ebx, dword [edi + 0x1c8]
mov edx, dword [ebp + 8]
sub ebx, edx
subsd xmm1, xmm0
movd xmm0, dword [edi + 0x19c]
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
movd xmm0, dword [edi + 0x1b0]
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
cvttsd2si ecx, xmm1
jmp 0x7de6b2
mov edx, dword [ebp + 8]
mov ecx, ebx
mov ebx, dword [edi + 0x1c8]
sub ebx, edx
jmp 0x7de6b2
mov eax, dword [edi + 0x1a0]
mov ecx, dword [edi + 0x168]
movss xmm3, dword [edi + 0x10c]
movss xmm4, dword [0x1015a890]
mov dword [ebp + 8], eax
mov eax, dword [edi + 0x114]
mov edx, dword [eax + ecx*4]
mov ecx, dword [edi + 0x1b0]
mov esi, dword [edx + 0x28]
add esi, dword [edi + 0x1c4]
lea eax, [ecx + ecx]
mov ebx, dword [edx + 0x30]
add esi, ecx
mov ecx, dword [edi + 0x50]
sub ebx, eax
ucomiss xmm3, xmm4
lahf
test ah, 0x44
jp 0x7de350
movd xmm2, ecx
cvtdq2pd xmm2, xmm2
jmp 0x7de386
movd xmm0, ecx
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, xmm3
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.008266e0
movss xmm3, dword [edi + 0x10c]
add esp, 8
movss xmm4, dword [0x1015a890]
fstp qword [ebp - 0x24]
movsd xmm2, qword [ebp - 0x24]
movd xmm0, dword [edi + 0x19c]
lea eax, [ebx + esi]
cvtdq2pd xmm0, xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
subsd xmm2, xmm0
comisd xmm1, xmm2
jbe 0x7de42b
mov ecx, dword [edi + 0x50]
ucomiss xmm3, xmm4
lahf
test ah, 0x44
jp 0x7de3c1
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
jmp 0x7de3e7
movd xmm0, ecx
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, xmm3
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.008266e0
fstp qword [ebp - 0x24]
movsd xmm1, qword [ebp - 0x24]
add esp, 8
movd xmm0, esi
cvtdq2pd xmm0, xmm0
mov ebx, dword [edi + 0x1d0]
add ebx, dword [edi + 0x1c8]
mov edx, dword [ebp + 8]
subsd xmm1, xmm0
movd xmm0, dword [edi + 0x19c]
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
movd xmm0, dword [edi + 0x1b0]
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
cvttsd2si ecx, xmm1
jmp 0x7de6b2
mov edx, dword [ebp + 8]
mov ecx, ebx
mov ebx, dword [edi + 0x1d0]
add ebx, dword [edi + 0x1c8]
jmp 0x7de6b2
mov eax, dword [edi + 0x1a0]
mov ecx, dword [edi + 0x168]
movss xmm3, dword [edi + 0x10c]
movss xmm4, dword [0x1015a890]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x114]
mov edx, dword [eax + ecx*4]
mov ecx, dword [edi + 0x1b0]
mov ebx, dword [edx + 0x2c]
add ebx, dword [edi + 0x1c8]
lea eax, [ecx + ecx]
mov esi, dword [edx + 0x34]
add ebx, ecx
mov ecx, dword [edi + 0x54]
sub esi, eax
ucomiss xmm3, xmm4
lahf
test ah, 0x44
jp 0x7de498
movd xmm2, ecx
cvtdq2pd xmm2, xmm2
jmp 0x7de4ce
movd xmm0, ecx
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, xmm3
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.008266e0
movss xmm3, dword [edi + 0x10c]
add esp, 8
movss xmm4, dword [0x1015a890]
fstp qword [ebp - 0x24]
movsd xmm2, qword [ebp - 0x24]
movd xmm0, dword [edi + 0x19c]
lea eax, [esi + ebx]
cvtdq2pd xmm0, xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
subsd xmm2, xmm0
comisd xmm1, xmm2
jbe 0x7de56b
mov ecx, dword [edi + 0x54]
ucomiss xmm3, xmm4
lahf
test ah, 0x44
jp 0x7de505
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
jmp 0x7de52b
movd xmm0, ecx
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, xmm3
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.008266e0
fstp qword [ebp - 0x24]
movsd xmm1, qword [ebp - 0x24]
add esp, 8
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
mov esi, dword [edi + 0x1c4]
mov ecx, dword [ebp - 0x10]
sub esi, ecx
subsd xmm1, xmm0
movd xmm0, dword [edi + 0x19c]
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
movd xmm0, dword [edi + 0x1b0]
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
cvttsd2si edx, xmm1
jmp 0x7de6b2
mov ecx, dword [ebp - 0x10]
mov edx, esi
mov esi, dword [edi + 0x1c4]
sub esi, ecx
jmp 0x7de6b2
mov eax, dword [edi + 0x1a0]
mov ecx, dword [edi + 0x168]
movss xmm3, dword [edi + 0x10c]
movss xmm4, dword [0x1015a890]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x114]
mov edx, dword [eax + ecx*4]
mov ecx, dword [edi + 0x1b0]
mov ebx, dword [edx + 0x2c]
add ebx, dword [edi + 0x1c8]
lea eax, [ecx + ecx]
mov esi, dword [edx + 0x34]
add ebx, ecx
mov ecx, dword [edi + 0x54]
sub esi, eax
ucomiss xmm3, xmm4
lahf
test ah, 0x44
jp 0x7de5d4
movd xmm2, ecx
cvtdq2pd xmm2, xmm2
jmp 0x7de60a
movd xmm0, ecx
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, xmm3
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.008266e0
movss xmm3, dword [edi + 0x10c]
add esp, 8
movss xmm4, dword [0x1015a890]
fstp qword [ebp - 0x24]
movsd xmm2, qword [ebp - 0x24]
movd xmm0, dword [edi + 0x19c]
lea eax, [esi + ebx]
mov ecx, dword [edi + 0x1cc]
cvtdq2pd xmm0, xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
subsd xmm2, xmm0
comisd xmm1, xmm2
jbe 0x7de6a5
mov edx, dword [edi + 0x54]
ucomiss xmm3, xmm4
lahf
test ah, 0x44
jp 0x7de647
movd xmm1, edx
cvtdq2pd xmm1, xmm1
jmp 0x7de673
movd xmm0, edx
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, xmm3
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.008266e0
mov ecx, dword [edi + 0x1cc]
add esp, 8
fstp qword [ebp - 0x24]
movsd xmm1, qword [ebp - 0x24]
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
movd xmm0, dword [edi + 0x19c]
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
movd xmm0, dword [edi + 0x1b0]
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
cvttsd2si edx, xmm1
jmp 0x7de6a7
mov edx, esi
mov esi, dword [edi + 0x1c4]
add esi, ecx
mov ecx, dword [ebp - 0x10]
push edx
push ecx
push ebx
push esi
push 3
push edi
call fcn.00745aa0
mov esi, dword [ebp + 0x10]
xor edx, edx
mov ecx, esi
call fcn.00724880
movss xmm0, dword [edi + 0x10c]
mov eax, 4
cmp byte [edi + 0xd5], 0
push ecx
movss dword [esp], xmm0
mov ecx, 7
push 0xff
push dword [edi + 0x1c0]
cmovne eax, ecx
push dword [edi + 0x1bc]
push dword [edi + 0x1b8]
push dword [edi + 0x1b4]
push eax
push esi
push dword [edi + 0x190]
call fcn.007e2680
push 0
push 0
push 0
push 0
push 1
push edi
call fcn.00745aa0
xor ebx, ebx
cmp dword [edi + 0x118], ebx
jle 0x7dee0c
mov eax, dword [edi + 0x114]
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax + 0x30]
mov dword [ebp + 8], ecx
cmp ecx, 1
jl 0x7dedfc
mov edx, dword [eax + 0x34]
mov dword [ebp - 0xc], edx
cmp edx, 1
jl 0x7dedfc
mov ecx, dword [eax + 0x2c]
mov esi, dword [eax + 0x28]
mov eax, dword [edi + 0x1c8]
push edx
mov edx, dword [ebp + 8]
add eax, ecx
push edx
push eax
mov eax, dword [edi + 0x1c4]
add eax, esi
mov dword [ebp - 8], ecx
push eax
push 3
push edi
call fcn.00745aa0
mov ecx, dword [edi + 0x170]
test ecx, ecx
je 0x7dea83
cmp ecx, 4
je 0x7dea83
cmp ecx, 8
je 0x7dea83
cmp ecx, 2
je 0x7dea83
cmp ecx, 6
je 0x7dea83
cmp ecx, 0xa
je 0x7dea83
mov eax, dword [edi + 0x114]
mov eax, dword [eax + ebx*4]
mov edx, dword [eax + 0x2c]
cmp edx, dword [edi + 0x1d0]
jg 0x7dee09
mov eax, dword [eax + 0x34]
add eax, edx
cmp eax, 1
jl 0x7dee09
mov eax, dword [ebp + 8]
add eax, dword [edi + 0x1a4]
movss xmm2, dword [edi + 0x10c]
movss xmm4, dword [0x1015a890]
mov edx, dword [edi + 0x54]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 8]
add eax, dword [edi + 0x1c8]
ucomiss xmm2, xmm4
mov dword [ebp - 8], eax
lahf
test ah, 0x44
jp 0x7de822
movd xmm3, edx
cvtdq2pd xmm3, xmm3
jmp 0x7de85e
movd xmm0, edx
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, xmm2
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.008266e0
movss xmm2, dword [edi + 0x10c]
add esp, 8
mov ecx, dword [edi + 0x170]
movss xmm4, dword [0x1015a890]
fstp qword [ebp - 0x24]
movsd xmm3, qword [ebp - 0x24]
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
movd xmm0, dword [edi + 0x19c]
cvtdq2pd xmm0, xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
subsd xmm3, xmm0
comisd xmm1, xmm3
jbe 0x7de8f0
mov edx, dword [edi + 0x54]
ucomiss xmm2, xmm4
lahf
test ah, 0x44
jp 0x7de898
movd xmm1, edx
cvtdq2pd xmm1, xmm1
jmp 0x7de8cc
movd xmm0, edx
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, xmm2
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.008266e0
mov ecx, dword [edi + 0x170]
add esp, 8
movss xmm4, dword [0x1015a890]
fstp qword [ebp - 0x24]
movsd xmm1, qword [ebp - 0x24]
movd xmm0, dword [ebp - 8]
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
movd xmm0, dword [edi + 0x19c]
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
cvttsd2si eax, xmm1
mov dword [ebp - 0xc], eax
add esi, dword [edi + 0x1c4]
mov dword [ebp - 0x10], esi
cmp ecx, 3
je 0x7de962
cmp ecx, 7
je 0x7de962
cmp ecx, 0xb
je 0x7de962
cmp ecx, 1
je 0x7de91b
cmp ecx, 5
je 0x7de91b
cmp ecx, 9
jne 0x7de9a0
sub esi, dword [edi + 0x1a4]
mov dword [ebp - 0x10], esi
cmp dword [edi + 0x168], ebx
je 0x7de9a0
mov eax, dword [edi + 0x178]
cmp eax, 0xffffffff
je 0x7de9a0
jle 0x7de93e
sub dword [ebp + 8], eax
jmp 0x7de9a0
cdq
mov esi, eax
mov eax, 0x99999999
xor esi, edx
sub esi, edx
imul dword [edi + 0x16c]
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul esi, ecx
add dword [ebp + 8], esi
jmp 0x7de99d
cmp dword [edi + 0x168], ebx
je 0x7de9a0
mov eax, dword [edi + 0x178]
cmp eax, 0xffffffff
je 0x7de9a0
jle 0x7de97b
add esi, eax
jmp 0x7de9a0
cdq
mov esi, eax
mov eax, 0x66666667
xor esi, edx
sub esi, edx
imul dword [edi + 0x16c]
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul esi, ecx
add dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x10]
cmp dword [edi + 0x174], 0xffffffff
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
jne 0x7ded44
mov ecx, dword [edi + 0x168]
cmp ecx, ebx
je 0x7ded44
lea eax, [ebx - 1]
cmp eax, ecx
jne 0x7de9ea
mov eax, dword [edi + 0x1b0]
mov ecx, edx
sub ecx, eax
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x118]
dec eax
cmp ebx, eax
jge 0x7ded41
movss xmm1, dword [edi + 0x10c]
mov ecx, dword [edi + 0x54]
ucomiss xmm1, xmm4
lahf
test ah, 0x44
jp 0x7dea17
movd xmm2, ecx
cvtdq2pd xmm2, xmm2
jmp 0x7dea40
movd xmm0, ecx
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.008266e0
mov edx, dword [ebp - 8]
add esp, 8
fstp qword [ebp - 0x2c]
movsd xmm2, qword [ebp - 0x2c]
movd xmm1, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
movd xmm0, edx
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
subsd xmm2, xmm0
movd xmm0, dword [edi + 0x19c]
cvtdq2pd xmm0, xmm0
subsd xmm2, xmm0
comisd xmm2, xmm1
jbe 0x7ded44
mov ecx, dword [ebp - 0x14]
add ecx, dword [edi + 0x1b0]
mov dword [ebp - 0x14], ecx
jmp 0x7ded44
mov eax, dword [edi + 0x114]
mov eax, dword [eax + ebx*4]
mov edx, dword [eax + 0x28]
cmp edx, dword [edi + 0x1cc]
jg 0x7dee09
mov eax, dword [eax + 0x30]
add eax, edx
cmp eax, 1
jl 0x7dee09
mov eax, dword [ebp - 0xc]
add eax, dword [edi + 0x1a4]
add esi, dword [edi + 0x1c4]
movss xmm2, dword [edi + 0x10c]
movss xmm4, dword [0x1015a890]
mov edx, dword [edi + 0x50]
ucomiss xmm2, xmm4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
lahf
test ah, 0x44
jp 0x7deae4
movd xmm3, edx
cvtdq2pd xmm3, xmm3
jmp 0x7deb20
movd xmm0, edx
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, xmm2
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.008266e0
movss xmm2, dword [edi + 0x10c]
add esp, 8
mov ecx, dword [edi + 0x170]
movss xmm4, dword [0x1015a890]
fstp qword [ebp - 0x2c]
movsd xmm3, qword [ebp - 0x2c]
mov eax, dword [ebp + 8]
movd xmm0, dword [edi + 0x19c]
add eax, esi
cvtdq2pd xmm0, xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
subsd xmm3, xmm0
comisd xmm1, xmm3
jbe 0x7debb0
mov edx, dword [edi + 0x50]
ucomiss xmm2, xmm4
lahf
test ah, 0x44
jp 0x7deb59
movd xmm1, edx
cvtdq2pd xmm1, xmm1
jmp 0x7deb8d
movd xmm0, edx
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, xmm2
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.008266e0
mov ecx, dword [edi + 0x170]
add esp, 8
movss xmm4, dword [0x1015a890]
fstp qword [ebp - 0x2c]
movsd xmm1, qword [ebp - 0x2c]
movd xmm0, esi
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
movd xmm0, dword [edi + 0x19c]
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
cvttsd2si eax, xmm1
mov dword [ebp + 8], eax
mov edx, dword [ebp - 8]
add edx, dword [edi + 0x1c8]
mov dword [ebp - 8], edx
test ecx, ecx
je 0x7dec2b
cmp ecx, 4
je 0x7dec2b
cmp ecx, 8
je 0x7dec2b
cmp ecx, 2
je 0x7debdd
cmp ecx, 6
je 0x7debdd
cmp ecx, 0xa
jne 0x7dec71
sub edx, dword [edi + 0x1a4]
mov dword [ebp - 8], edx
cmp dword [edi + 0x168], ebx
je 0x7dec71
mov eax, dword [edi + 0x178]
cmp eax, 0xffffffff
je 0x7dec71
jle 0x7dec04
sub dword [ebp - 0xc], eax
jmp 0x7dec71
cdq
mov esi, eax
mov eax, 0x99999999
xor esi, edx
sub esi, edx
imul dword [edi + 0x16c]
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [ebp - 8]
imul esi, ecx
add dword [ebp - 0xc], esi
jmp 0x7dec6e
cmp dword [edi + 0x168], ebx
je 0x7dec71
mov eax, dword [edi + 0x178]
cmp eax, 0xffffffff
je 0x7dec71
jle 0x7dec47
add edx, eax
mov dword [ebp - 8], edx
jmp 0x7dec71
cdq
mov esi, eax
mov eax, 0x66666667
xor esi, edx
sub esi, edx
imul dword [edi + 0x16c]
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [ebp - 8]
imul esi, ecx
add edx, esi
mov dword [ebp - 8], edx
mov esi, dword [ebp - 0x10]
cmp dword [edi + 0x174], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
jne 0x7ded44
mov ecx, dword [edi + 0x168]
cmp ecx, ebx
je 0x7ded44
lea eax, [ebx - 1]
cmp eax, ecx
jne 0x7decb8
mov eax, dword [edi + 0x1b0]
mov ecx, esi
sub ecx, eax
add eax, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x118]
dec eax
cmp ebx, eax
jge 0x7ded41
movss xmm1, dword [edi + 0x10c]
mov ecx, dword [edi + 0x50]
ucomiss xmm1, xmm4
lahf
test ah, 0x44
jp 0x7dece5
movd xmm2, ecx
cvtdq2pd xmm2, xmm2
jmp 0x7ded0b
movd xmm0, ecx
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.008266e0
fstp qword [ebp - 0x2c]
movsd xmm2, qword [ebp - 0x2c]
add esp, 8
movd xmm1, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
movd xmm0, esi
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
subsd xmm2, xmm0
movd xmm0, dword [edi + 0x19c]
cvtdq2pd xmm0, xmm0
subsd xmm2, xmm0
comisd xmm2, xmm1
jbe 0x7ded44
add eax, dword [edi + 0x1b0]
jmp 0x7ded44
mov eax, dword [ebp - 0x10]
cmp byte [edi + 0x14d], 0
je 0x7ded54
mov ecx, 3
jmp 0x7ded84
cmp dword [0x101716e4], edi
jne 0x7ded6b
cmp dword [0x1016f9e8], ebx
jne 0x7ded6b
mov ecx, 2
jmp 0x7ded84
cmp dword [0x101716d8], edi
jne 0x7ded82
cmp dword [0x1016f9e4], ebx
jne 0x7ded82
mov ecx, 1
jmp 0x7ded84
xor ecx, ecx
movss xmm0, dword [edi + 0x10c]
push ecx
movss dword [esp], xmm0
push 0xff
push dword [ebp - 0x14]
push eax
push dword [ebp - 0x18]
xor eax, eax
cmp dword [edi + 0x168], ebx
push dword [ebp - 0x20]
sete al
lea eax, [eax*4 + 8]
add eax, ecx
push eax
push dword [ebp + 0x10]
push dword [edi + 0x190]
call fcn.007e2680
push 0
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
push esi
push ebx
push dword [ebp + 0x10]
push edi
call fcn.00768f70
sub esp, 0x10
push ebx
push ecx
mov ecx, edi
call fcn.007ddd80
push 1
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
push esi
push ebx
push dword [ebp + 0x10]
push edi
call fcn.00768f70
inc ebx
cmp ebx, dword [edi + 0x118]
jl 0x7de734
mov esi, dword [ebp + 0x10]
push 0
push 0
push 0
push 0
push 1
push edi
call fcn.00745aa0
jmp 0x7deee9
ucomiss xmm1, dword [0x1015a890]
mov ecx, dword [edi + 0x54]
movd xmm0, ecx
lahf
test ah, 0x44
jp 0x7dee3b
cvtdq2pd xmm0, xmm0
jmp 0x7dee5d
cvtdq2ps xmm0, xmm0
sub esp, 8
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.008266e0
fstp qword [ebp - 0x2c]
movsd xmm0, qword [ebp - 0x2c]
add esp, 8
movss xmm1, dword [edi + 0x10c]
ucomiss xmm1, dword [0x1015a890]
mov ecx, dword [edi + 0x50]
movsd qword [ebp - 0x24], xmm0
lahf
test ah, 0x44
jp 0x7dee84
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
jmp 0x7deeaa
movd xmm0, ecx
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.008266e0
fstp qword [ebp - 0x2c]
movsd xmm1, qword [ebp - 0x2c]
add esp, 8
cvttsd2si eax, qword [ebp - 0x24]
push ecx
mov ecx, 3
movss xmm0, dword [edi + 0x10c]
movss dword [esp], xmm0
push 0xff
push eax
cvttsd2si eax, xmm1
push eax
xor eax, eax
cmp byte [edi + 0xd5], al
push 0
push 0
cmovne eax, ecx
push eax
push esi
push dword [edi + 0x190]
call fcn.007e2680
movss xmm1, dword [edi + 0x10c]
ucomiss xmm1, dword [0x1015a890]
mov ecx, dword [edi + 0x54]
movd xmm0, ecx
lahf
test ah, 0x44
jp 0x7def0b
cvtdq2pd xmm0, xmm0
jmp 0x7def2d
cvtdq2ps xmm0, xmm0
sub esp, 8
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.008266e0
fstp qword [ebp - 0x2c]
movsd xmm0, qword [ebp - 0x2c]
add esp, 8
movss xmm1, dword [edi + 0x10c]
ucomiss xmm1, dword [0x1015a890]
mov ecx, dword [edi + 0x50]
movsd qword [ebp - 0x24], xmm0
movd xmm0, ecx
lahf
test ah, 0x44
jp 0x7def54
cvtdq2pd xmm0, xmm0
jmp 0x7def76
cvtdq2ps xmm0, xmm0
sub esp, 8
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.008266e0
fstp qword [ebp - 0x2c]
movsd xmm0, qword [ebp - 0x2c]
add esp, 8
cvttsd2si eax, qword [ebp - 0x24]
push eax
cvttsd2si eax, xmm0
push eax
push 0
push 0
push esi
push edi
call fcn.00769120
test esi, esi
je 0x7defc1
cmp dword [0x10171718], 0
je 0x7defc1
mov eax, dword [esi + 0x28]
cmp eax, 1
jl 0x7defc1
dec eax
mov ecx, esi
mov dword [esi + 0x28], eax
call fcn.007248e0
mov eax, dword [esi + 0x3c]
push 0
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc4]
mov dword [0x10171864], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc