Function at 0x100dd230
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 0x100de16e
cmp dword [ebp + 8], 0
je 0x100de16e
cmp dword [edi + 0x168], 0xfffffffe
je 0x100de16e
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x100dd281
cmp dword [0x1016c504], 0
je 0x100dd281
mov eax, dword [esi + 0x28]
test eax, eax
jg 0x100dd281
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 0x100ddfcf
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 sym.ExuiKrnln_X32.dll_RexDrawSkin
mov eax, dword [edi + 0x170]
cmp eax, 0xb
ja 0x100de097
cmp dword [edi + 0x1cc], 0
je 0x100de097
xor esi, esi
xor ebx, ebx
xor ecx, ecx
xor edx, edx
cmp eax, 3
je 0x100dd71d
cmp eax, 7
je 0x100dd71d
cmp eax, 0xb
je 0x100dd71d
cmp eax, 1
je 0x100dd5e1
cmp eax, 5
je 0x100dd5e1
cmp eax, 9
je 0x100dd5e1
test eax, eax
je 0x100dd499
cmp eax, 4
je 0x100dd499
cmp eax, 8
je 0x100dd499
cmp eax, 2
je 0x100dd35d
cmp eax, 6
je 0x100dd35d
cmp eax, 0xa
jne 0x100dd852
mov eax, dword [edi + 0x1a0]
mov ecx, dword [edi + 0x168]
movss xmm3, dword [edi + 0x10c]
movss xmm4, dword [0x10155570]
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 0x100dd3b4
movd xmm2, ecx
cvtdq2pd xmm2, xmm2
jmp 0x100dd3ea
movd xmm0, ecx
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, xmm3
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.101245f0
movss xmm3, dword [edi + 0x10c]
add esp, 8
movss xmm4, dword [0x10155570]
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 0x100dd487
mov ecx, dword [edi + 0x50]
ucomiss xmm3, xmm4
lahf
test ah, 0x44
jp 0x100dd421
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
jmp 0x100dd447
movd xmm0, ecx
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, xmm3
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.101245f0
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 0x100dd852
mov edx, dword [ebp + 8]
mov ecx, ebx
mov ebx, dword [edi + 0x1c8]
sub ebx, edx
jmp 0x100dd852
mov eax, dword [edi + 0x1a0]
mov ecx, dword [edi + 0x168]
movss xmm3, dword [edi + 0x10c]
movss xmm4, dword [0x10155570]
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 0x100dd4f0
movd xmm2, ecx
cvtdq2pd xmm2, xmm2
jmp 0x100dd526
movd xmm0, ecx
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, xmm3
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.101245f0
movss xmm3, dword [edi + 0x10c]
add esp, 8
movss xmm4, dword [0x10155570]
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 0x100dd5cb
mov ecx, dword [edi + 0x50]
ucomiss xmm3, xmm4
lahf
test ah, 0x44
jp 0x100dd561
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
jmp 0x100dd587
movd xmm0, ecx
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, xmm3
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.101245f0
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 0x100dd852
mov edx, dword [ebp + 8]
mov ecx, ebx
mov ebx, dword [edi + 0x1d0]
add ebx, dword [edi + 0x1c8]
jmp 0x100dd852
mov eax, dword [edi + 0x1a0]
mov ecx, dword [edi + 0x168]
movss xmm3, dword [edi + 0x10c]
movss xmm4, dword [0x10155570]
mov dword [ebp - 0x14], 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 0x100dd638
movd xmm2, ecx
cvtdq2pd xmm2, xmm2
jmp 0x100dd66e
movd xmm0, ecx
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, xmm3
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.101245f0
movss xmm3, dword [edi + 0x10c]
add esp, 8
movss xmm4, dword [0x10155570]
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 0x100dd70b
mov ecx, dword [edi + 0x54]
ucomiss xmm3, xmm4
lahf
test ah, 0x44
jp 0x100dd6a5
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
jmp 0x100dd6cb
movd xmm0, ecx
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, xmm3
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.101245f0
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 - 0x14]
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 0x100dd852
mov ecx, dword [ebp - 0x14]
mov edx, esi
mov esi, dword [edi + 0x1c4]
sub esi, ecx
jmp 0x100dd852
mov eax, dword [edi + 0x1a0]
mov ecx, dword [edi + 0x168]
movss xmm3, dword [edi + 0x10c]
movss xmm4, dword [0x10155570]
mov dword [ebp - 0x14], 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 0x100dd774
movd xmm2, ecx
cvtdq2pd xmm2, xmm2
jmp 0x100dd7aa
movd xmm0, ecx
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, xmm3
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.101245f0
movss xmm3, dword [edi + 0x10c]
add esp, 8
movss xmm4, dword [0x10155570]
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 0x100dd845
mov edx, dword [edi + 0x54]
ucomiss xmm3, xmm4
lahf
test ah, 0x44
jp 0x100dd7e7
movd xmm1, edx
cvtdq2pd xmm1, xmm1
jmp 0x100dd813
movd xmm0, edx
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, xmm3
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.101245f0
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 0x100dd847
mov edx, esi
mov esi, dword [edi + 0x1c4]
add esi, ecx
mov ecx, dword [ebp - 0x14]
push edx
push ecx
push ebx
push esi
mov edx, 3
mov ecx, edi
call fcn.1004a050
mov esi, dword [ebp + 0x10]
push 0
push esi
call sym.ExuiKrnln_X32.dll_Clear_CanvasEx
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 sym.ExuiKrnln_X32.dll_RexDrawSkin
push 0
push 0
push 0
push 0
mov edx, 1
mov ecx, edi
call fcn.1004a050
xor ebx, ebx
cmp dword [edi + 0x118], ebx
jle 0x100ddfb6
nop dword [eax + eax]
mov eax, dword [edi + 0x114]
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0xc], ecx
cmp ecx, 1
jl 0x100ddfa6
mov edx, dword [eax + 0x34]
mov dword [ebp - 8], edx
cmp edx, 1
jl 0x100ddfa6
mov ecx, dword [eax + 0x2c]
mov esi, dword [eax + 0x28]
mov eax, dword [edi + 0x1c8]
push edx
push dword [ebp - 0xc]
add eax, ecx
mov dword [ebp + 8], ecx
push eax
mov eax, dword [edi + 0x1c4]
mov edx, 3
add eax, esi
mov ecx, edi
push eax
call fcn.1004a050
mov ecx, dword [edi + 0x170]
test ecx, ecx
je 0x100ddc2c
cmp ecx, 4
je 0x100ddc2c
cmp ecx, 8
je 0x100ddc2c
cmp ecx, 2
je 0x100ddc2c
cmp ecx, 6
je 0x100ddc2c
cmp ecx, 0xa
je 0x100ddc2c
mov eax, dword [edi + 0x114]
mov eax, dword [eax + ebx*4]
mov edx, dword [eax + 0x2c]
cmp edx, dword [edi + 0x1d0]
jg 0x100ddfb3
mov eax, dword [eax + 0x34]
add eax, edx
cmp eax, 1
jl 0x100ddfb3
mov eax, dword [ebp - 0xc]
add eax, dword [edi + 0x1a4]
movss xmm2, dword [edi + 0x10c]
movss xmm4, dword [0x10155570]
mov edx, dword [edi + 0x54]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
add eax, dword [edi + 0x1c8]
ucomiss xmm2, xmm4
mov dword [ebp + 8], eax
lahf
test ah, 0x44
jp 0x100dd9d1
movd xmm3, edx
cvtdq2pd xmm3, xmm3
jmp 0x100dda0d
movd xmm0, edx
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, xmm2
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.101245f0
movss xmm2, dword [edi + 0x10c]
add esp, 8
mov ecx, dword [edi + 0x170]
movss xmm4, dword [0x10155570]
fstp qword [ebp - 0x24]
movsd xmm3, qword [ebp - 0x24]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
movd xmm0, dword [edi + 0x19c]
cvtdq2pd xmm0, xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
subsd xmm3, xmm0
comisd xmm1, xmm3
jbe 0x100dda9f
mov edx, dword [edi + 0x54]
ucomiss xmm2, xmm4
lahf
test ah, 0x44
jp 0x100dda47
movd xmm1, edx
cvtdq2pd xmm1, xmm1
jmp 0x100dda7b
movd xmm0, edx
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, xmm2
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.101245f0
mov ecx, dword [edi + 0x170]
add esp, 8
movss xmm4, dword [0x10155570]
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 - 8], eax
add esi, dword [edi + 0x1c4]
mov dword [ebp - 0x10], esi
cmp ecx, 3
je 0x100ddb11
cmp ecx, 7
je 0x100ddb11
cmp ecx, 0xb
je 0x100ddb11
cmp ecx, 1
je 0x100ddaca
cmp ecx, 5
je 0x100ddaca
cmp ecx, 9
jne 0x100ddb52
sub esi, dword [edi + 0x1a4]
mov dword [ebp - 0x10], esi
cmp dword [edi + 0x168], ebx
je 0x100ddb52
mov eax, dword [edi + 0x178]
cmp eax, 0xffffffff
je 0x100ddb52
jle 0x100ddaed
sub dword [ebp - 0xc], eax
jmp 0x100ddb52
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 - 0xc], esi
jmp 0x100ddb4f
cmp dword [edi + 0x168], ebx
je 0x100ddb52
mov eax, dword [edi + 0x178]
cmp eax, 0xffffffff
je 0x100ddb52
jle 0x100ddb2d
add esi, eax
mov dword [ebp - 0x10], esi
jmp 0x100ddb52
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 dword [ebp - 0x20], esi
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
jne 0x100ddeed
mov ecx, dword [edi + 0x168]
cmp ecx, ebx
je 0x100ddeed
lea eax, [ebx - 1]
cmp eax, ecx
jne 0x100ddb99
mov eax, dword [edi + 0x1b0]
mov ecx, edx
sub ecx, eax
add eax, dword [ebp - 8]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x118]
dec eax
cmp ebx, eax
jge 0x100ddeea
movss xmm1, dword [edi + 0x10c]
mov ecx, dword [edi + 0x54]
ucomiss xmm1, xmm4
lahf
test ah, 0x44
jp 0x100ddbc6
movd xmm2, ecx
cvtdq2pd xmm2, xmm2
jmp 0x100ddbef
movd xmm0, ecx
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.101245f0
mov edx, dword [ebp + 8]
add esp, 8
fstp qword [ebp - 0x2c]
movsd xmm2, qword [ebp - 0x2c]
movd xmm1, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
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 0x100ddeed
add eax, dword [edi + 0x1b0]
jmp 0x100ddeed
mov eax, dword [edi + 0x114]
mov eax, dword [eax + ebx*4]
mov edx, dword [eax + 0x28]
cmp edx, dword [edi + 0x1cc]
jg 0x100ddfb3
mov eax, dword [eax + 0x30]
add eax, edx
cmp eax, 1
jl 0x100ddfb3
mov eax, dword [ebp - 8]
add eax, dword [edi + 0x1a4]
add esi, dword [edi + 0x1c4]
movss xmm2, dword [edi + 0x10c]
movss xmm4, dword [0x10155570]
mov edx, dword [edi + 0x50]
ucomiss xmm2, xmm4
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
lahf
test ah, 0x44
jp 0x100ddc8d
movd xmm3, edx
cvtdq2pd xmm3, xmm3
jmp 0x100ddcc9
movd xmm0, edx
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, xmm2
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.101245f0
movss xmm2, dword [edi + 0x10c]
add esp, 8
mov ecx, dword [edi + 0x170]
movss xmm4, dword [0x10155570]
fstp qword [ebp - 0x2c]
movsd xmm3, qword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
movd xmm0, dword [edi + 0x19c]
add eax, esi
cvtdq2pd xmm0, xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
subsd xmm3, xmm0
comisd xmm1, xmm3
jbe 0x100ddd59
mov edx, dword [edi + 0x50]
ucomiss xmm2, xmm4
lahf
test ah, 0x44
jp 0x100ddd02
movd xmm1, edx
cvtdq2pd xmm1, xmm1
jmp 0x100ddd36
movd xmm0, edx
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, xmm2
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.101245f0
mov ecx, dword [edi + 0x170]
add esp, 8
movss xmm4, dword [0x10155570]
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 - 0xc], eax
mov edx, dword [ebp + 8]
add edx, dword [edi + 0x1c8]
mov dword [ebp + 8], edx
test ecx, ecx
je 0x100dddd4
cmp ecx, 4
je 0x100dddd4
cmp ecx, 8
je 0x100dddd4
cmp ecx, 2
je 0x100ddd86
cmp ecx, 6
je 0x100ddd86
cmp ecx, 0xa
jne 0x100dde1a
sub edx, dword [edi + 0x1a4]
mov dword [ebp + 8], edx
cmp dword [edi + 0x168], ebx
je 0x100dde1a
mov eax, dword [edi + 0x178]
cmp eax, 0xffffffff
je 0x100dde1a
jle 0x100dddad
sub dword [ebp - 8], eax
jmp 0x100dde1a
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 - 8], esi
jmp 0x100dde17
cmp dword [edi + 0x168], ebx
je 0x100dde1a
mov eax, dword [edi + 0x178]
cmp eax, 0xffffffff
je 0x100dde1a
jle 0x100dddf0
add edx, eax
mov dword [ebp + 8], edx
jmp 0x100dde1a
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 esi, edx
mov dword [ebp - 0x14], eax
jne 0x100ddeed
mov ecx, dword [edi + 0x168]
cmp ecx, ebx
je 0x100ddeed
lea eax, [ebx - 1]
cmp eax, ecx
jne 0x100dde5e
mov eax, dword [edi + 0x1b0]
mov ecx, dword [ebp - 0x10]
sub ecx, eax
mov dword [ebp - 0x20], ecx
lea esi, [eax + edx]
mov eax, dword [edi + 0x118]
dec eax
cmp ebx, eax
jge 0x100ddeea
movss xmm1, dword [edi + 0x10c]
mov ecx, dword [edi + 0x50]
ucomiss xmm1, xmm4
lahf
test ah, 0x44
jp 0x100dde8b
movd xmm2, ecx
cvtdq2pd xmm2, xmm2
jmp 0x100ddeb4
movd xmm0, ecx
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.101245f0
mov edx, dword [ebp - 0xc]
add esp, 8
fstp qword [ebp - 0x2c]
movsd xmm2, qword [ebp - 0x2c]
movd xmm0, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
cvtdq2pd xmm0, xmm0
movd xmm1, edx
subsd xmm2, xmm0
movd xmm0, dword [edi + 0x19c]
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
subsd xmm2, xmm0
comisd xmm2, xmm1
jbe 0x100ddeed
add esi, dword [edi + 0x1b0]
jmp 0x100ddeed
mov eax, dword [ebp - 0x14]
cmp byte [edi + 0x14d], 0
je 0x100ddefd
mov ecx, 3
jmp 0x100ddf2d
cmp dword [0x1016c3a0], edi
jne 0x100ddf14
cmp dword [0x1016a958], ebx
jne 0x100ddf14
mov ecx, 2
jmp 0x100ddf2d
cmp dword [0x1016c398], edi
jne 0x100ddf2b
cmp dword [0x1016a954], ebx
jne 0x100ddf2b
mov ecx, 1
jmp 0x100ddf2d
xor ecx, ecx
movss xmm0, dword [edi + 0x10c]
push ecx
movss dword [esp], xmm0
push 0xff
push eax
xor eax, eax
cmp dword [edi + 0x168], ebx
push esi
push dword [ebp - 0x18]
sete al
push dword [ebp - 0x20]
lea eax, [eax*4 + 8]
add eax, ecx
push eax
push dword [ebp + 0x10]
push dword [edi + 0x190]
call sym.ExuiKrnln_X32.dll_RexDrawSkin
mov esi, dword [ebp - 0x10]
push 0
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp + 8]
push esi
push ebx
push dword [ebp + 0x10]
push edi
call sym.ExuiKrnln_X32.dll_ElemOnDrawPro_L
sub esp, 0x10
push ebx
push ecx
mov ecx, edi
call fcn.100dcf20
push 1
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp + 8]
push esi
push ebx
push dword [ebp + 0x10]
push edi
call sym.ExuiKrnln_X32.dll_ElemOnDrawPro_L
inc ebx
cmp ebx, dword [edi + 0x118]
jl 0x100dd8e0
mov esi, dword [ebp + 0x10]
push 0
push 0
push 0
push 0
mov edx, 1
mov ecx, edi
call fcn.1004a050
jmp 0x100de097
ucomiss xmm1, dword [0x10155570]
mov ecx, dword [edi + 0x54]
movd xmm0, ecx
lahf
test ah, 0x44
jp 0x100ddfe9
cvtdq2pd xmm0, xmm0
jmp 0x100de00b
cvtdq2ps xmm0, xmm0
sub esp, 8
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.101245f0
fstp qword [ebp - 0x2c]
movsd xmm0, qword [ebp - 0x2c]
add esp, 8
movss xmm1, dword [edi + 0x10c]
ucomiss xmm1, dword [0x10155570]
mov ecx, dword [edi + 0x50]
movsd qword [ebp - 0x24], xmm0
lahf
test ah, 0x44
jp 0x100de032
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
jmp 0x100de058
movd xmm0, ecx
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.101245f0
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 sym.ExuiKrnln_X32.dll_RexDrawSkin
movss xmm1, dword [edi + 0x10c]
ucomiss xmm1, dword [0x10155570]
mov ecx, dword [edi + 0x54]
movd xmm0, ecx
lahf
test ah, 0x44
jp 0x100de0b9
cvtdq2pd xmm0, xmm0
jmp 0x100de0db
cvtdq2ps xmm0, xmm0
sub esp, 8
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.101245f0
fstp qword [ebp - 0x2c]
movsd xmm0, qword [ebp - 0x2c]
add esp, 8
movss xmm1, dword [edi + 0x10c]
ucomiss xmm1, dword [0x10155570]
mov ecx, dword [edi + 0x50]
movsd qword [ebp - 0x24], xmm0
movd xmm0, ecx
lahf
test ah, 0x44
jp 0x100de102
cvtdq2pd xmm0, xmm0
jmp 0x100de124
cvtdq2ps xmm0, xmm0
sub esp, 8
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.101245f0
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 sym.ExuiKrnln_X32.dll_ElemOnDrawPro_A
test esi, esi
je 0x100de16e
cmp dword [0x1016c504], 0
je 0x100de16e
mov eax, dword [esi + 0x28]
cmp eax, 1
jl 0x100de16e
dec eax
push esi
mov dword [esi + 0x28], eax
call sym.ExuiKrnln_X32.dll_ResetClip_CanvasEx
mov eax, dword [esi + 0x3c]
push 0
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc4]
mov dword [0x1016c4f8], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc