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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000b91d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
push esi
push edi
mov eax, dword [0x10010040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebx + 8]
mov dword [ebp - 0x4c], eax
movq xmm0, qword [eax]
mov edx, dword [eax + 8]
movq qword [ebp - 0x58], xmm0
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 4], 0
xorps xmm1, xmm1
mov esi, dword [ebp - 0x58]
mov eax, esi
sub eax, edx
movsd qword [ebp - 0x48], xmm1
mov dword [ebp - 0x38], eax
cmp byte [esi], 0x2d
jne 0x10004c0c
inc esi
mov dl, 1
mov dword [ebp - 0x58], esi
jmp 0x10004c0e
xor dl, dl
mov al, byte [esi]
xorps xmm0, xmm0
mov byte [ebp - 0x13], dl
movlpd qword [ebp - 0x40], xmm0
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x24], 0
cmp al, 0x30
jne 0x10004c3c
lea edi, [esi + 1]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x58], edi
jmp 0x10004cf6
cmp al, 0x31
jl 0x100053eb
cmp al, 0x39
jg 0x100053eb
movsx ecx, al
lea edi, [esi + 1]
mov al, byte [edi]
sub ecx, 0x30
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x2c], ecx
test dl, dl
je 0x10004cb7
cmp al, 0x30
jl 0x10004cf6
mov edx, edi
mov esi, edi
nop dword [eax]
cmp al, 0x39
ja 0x10004cf6
cmp ecx, 0xccccccc
jb 0x10004c88
jne 0x10004cac
mov edx, esi
cmp al, 0x38
ja 0x10004cac
movsx eax, byte [edx]
lea ecx, [ecx + ecx*4]
inc dword [ebp - 0x24]
lea edi, [edx + 1]
lea ecx, [ecx - 0x18]
mov dword [ebp - 0x58], edi
mov edx, edi
mov esi, edi
lea ecx, [eax + ecx*2]
mov al, byte [edi]
mov dword [ebp - 0x2c], ecx
cmp al, 0x30
jge 0x10004c70
jmp 0x10004cf6
mov dl, 1
mov eax, ecx
xor ecx, ecx
mov byte [ebp - 0x11], dl
jmp 0x10004cff
cmp al, 0x30
jl 0x10004cf6
mov edx, edi
mov esi, edi
nop
cmp al, 0x39
jg 0x10004cf6
cmp ecx, 0x19999999
jb 0x10004cd4
jne 0x10004cac
mov edx, esi
cmp al, 0x35
jg 0x10004cac
movsx eax, byte [edx]
lea ecx, [ecx + ecx*4]
inc dword [ebp - 0x24]
lea edi, [edx + 1]
lea ecx, [ecx - 0x18]
mov dword [ebp - 0x58], edi
mov edx, edi
mov esi, edi
lea ecx, [eax + ecx*2]
mov al, byte [edi]
mov dword [ebp - 0x2c], ecx
cmp al, 0x30
jge 0x10004cc0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov dl, byte [ebp - 0x11]
xor dh, dh
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x12], dh
test dl, dl
je 0x10004e45
mov dl, byte [edi]
cmp byte [ebp - 0x13], dh
je 0x10004dc3
cmp dl, 0x30
jl 0x10004e42
mov esi, edi
mov dword [ebp - 0x28], esi
nop dword [eax + eax]
cmp dl, 0x39
ja 0x10004e3f
cmp ecx, 0xccccccc
jb 0x10004d61
ja 0x10004d4a
cmp eax, 0xcccccccc
jb 0x10004d61
cmp eax, 0xcccccccc
jne 0x10004da8
cmp ecx, 0xccccccc
jne 0x10004da8
mov esi, dword [ebp - 0x28]
cmp dl, 0x38
ja 0x10004da8
shld ecx, eax, 2
lea edi, [esi + 1]
xor edx, edx
movsx esi, byte [esi]
shl eax, 2
sub esi, 0x30
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
adc dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x1c]
shld ecx, eax, 1
mov dword [ebp - 0x58], edi
add eax, eax
mov dword [ebp - 0x28], edi
add eax, esi
mov esi, edi
mov dword [ebp - 0x18], eax
adc edx, ecx
inc dword [ebp - 0x24]
mov ecx, edx
mov dl, byte [edi]
mov dword [ebp - 0x1c], ecx
cmp dl, 0x30
jge 0x10004d30
jmp 0x10004e3f
mov edx, ecx
mov ecx, eax
call fcn.1000b6f0
movaps xmm1, xmm0
mov dh, 1
movsd qword [ebp - 0x48], xmm1
mov byte [ebp - 0x12], dh
jmp 0x10004e42
cmp dl, 0x30
jl 0x10004e42
mov esi, edi
mov dword [ebp - 0x28], esi
nop dword [eax]
cmp dl, 0x39
ja 0x10004e3f
cmp ecx, 0x19999999
jb 0x10004dfd
ja 0x10004de6
cmp eax, 0x99999999
jb 0x10004dfd
cmp eax, 0x99999999
jne 0x10004da8
cmp ecx, 0x19999999
jne 0x10004da8
mov esi, dword [ebp - 0x28]
cmp dl, 0x35
ja 0x10004da8
shld ecx, eax, 2
lea edi, [esi + 1]
xor edx, edx
movsx esi, byte [esi]
shl eax, 2
sub esi, 0x30
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
adc dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x1c]
shld ecx, eax, 1
mov dword [ebp - 0x58], edi
add eax, eax
mov dword [ebp - 0x28], edi
add eax, esi
mov esi, edi
mov dword [ebp - 0x18], eax
adc edx, ecx
inc dword [ebp - 0x24]
mov ecx, edx
mov dl, byte [edi]
mov dword [ebp - 0x1c], ecx
cmp dl, 0x30
jge 0x10004dd0
mov dh, byte [ebp - 0x12]
mov dl, byte [ebp - 0x11]
movsd xmm2, qword [0x1000e530]
test dh, dh
je 0x10004e8d
mov al, byte [edi]
cmp al, 0x30
jl 0x10004e8d
mov ecx, edi
nop dword [eax]
cmp al, 0x39
ja 0x10004e85
movsx eax, byte [ecx]
lea edi, [ecx + 1]
sub eax, 0x30
mulsd xmm1, xmm2
mov ecx, edi
movd xmm0, eax
mov al, byte [edi]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x10004e60
mov dword [ebp - 0x58], edi
movsd qword [ebp - 0x48], xmm1
mov al, byte [edi]
mov dword [ebp - 0x28], 0
cmp al, 0x2e
jne 0x10004e9e
inc edi
mov dword [ebp - 0x58], edi
mov esi, edi
cmp al, 0x2e
jne 0x10004f59
mov al, byte [esi]
cmp al, 0x30
jl 0x10004f83
cmp al, 0x39
jg 0x10004f83
test dh, dh
jne 0x10004eea
test dl, dl
je 0x10004eca
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
jmp 0x10004ecf
mov ecx, dword [ebp - 0x2c]
xor edx, edx
call fcn.1000b6f0
movsd xmm2, qword [0x1000e530]
movaps xmm1, xmm0
movsd qword [ebp - 0x48], xmm0
mov byte [ebp - 0x12], 1
jmp 0x10004ef2
movsd qword [ebp - 0x48], xmm1
mov byte [ebp - 0x12], dh
mov cl, byte [edi]
mov eax, esi
mov edx, dword [ebp - 0x24]
xorps xmm3, xmm3
mov dword [ebp - 0x34], esi
mov edi, esi
mov dword [ebp - 0x3c], esi
mov esi, edi
cmp cl, 0x39
jg 0x10004f56
cmp edx, 0x11
jge 0x10004f3f
dec dword [ebp - 0x28]
lea esi, [eax + 1]
movsx eax, byte [eax]
mov ecx, esi
sub eax, 0x30
mulsd xmm1, xmm2
mov dword [ebp - 0x58], ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
comisd xmm1, xmm3
movsd qword [ebp - 0x48], xmm1
jbe 0x10004f48
inc edx
jmp 0x10004f48
mov esi, dword [ebp - 0x34]
inc esi
mov ecx, esi
mov dword [ebp - 0x58], ecx
mov cl, byte [ecx]
mov eax, esi
mov dword [ebp - 0x34], eax
mov edi, eax
cmp cl, 0x30
jge 0x10004f04
mov dh, byte [ebp - 0x12]
mov eax, dword [0x1000c0f4]
xor edi, edi
cmp byte [esi], 0x65
je 0x10004f6e
cmp byte [esi], 0x45
jne 0x10005089
inc esi
mov dword [ebp - 0x58], esi
test dh, dh
jne 0x10004fc6
cmp byte [ebp - 0x11], dh
je 0x10004fb0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
jmp 0x10004fb5
mov edi, dword [ebp - 0x30]
add edi, 0x18
cmp dword [edi], 0
je 0x10004fa6
push 0x628
push str.X:BaseLSE_UPDATEDiscord_RPCLSERPCDiscordRichPresence_src_rapidjson_reader.h
push str._HasParseError__
call dword [0x1000c0f4]
add esp, 0xc
mov eax, 0xe
jmp 0x10005411
mov ecx, dword [ebp - 0x2c]
xor edx, edx
call fcn.1000b6f0
movaps xmm1, xmm0
mov byte [ebp - 0x12], 1
movsd qword [ebp - 0x48], xmm1
mov cl, byte [esi]
xor dl, dl
cmp cl, 0x2b
je 0x10004fd6
cmp cl, 0x2d
jne 0x10004fdd
mov dl, 1
mov cl, byte [esi + 1]
inc esi
mov dword [ebp - 0x58], esi
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x1000513f
movsx edi, cl
inc esi
sub edi, 0x30
mov dword [ebp - 0x58], esi
test dl, dl
je 0x100050cc
mov eax, dword [ebp - 0x28]
test eax, eax
jle 0x10005022
mov eax, dword [0x1000c0f4]
push 0x668
push str.X:BaseLSE_UPDATEDiscord_RPCLSERPCDiscordRichPresence_src_rapidjson_reader.h
push str.expFrac___0
call eax
movsd xmm1, qword [ebp - 0x48]
add esp, 0xc
mov eax, dword [ebp - 0x28]
lea ecx, [eax + 0x7ffffff7]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp byte [esi], 0x30
mov dword [ebp - 0x3c], eax
jl 0x10005082
mov al, byte [esi]
cmp al, 0x39
jg 0x10005082
movsx eax, byte [esi]
lea edi, [edi + edi*4]
lea edi, [edi - 0x18]
lea edx, [esi + 1]
mov dword [ebp - 0x58], edx
mov esi, edx
lea edi, [eax + edi*2]
cmp edi, dword [ebp - 0x3c]
jle 0x1000507c
mov al, byte [edx]
cmp al, 0x30
jl 0x1000507c
mov ecx, edx
cmp al, 0x39
ja 0x10005079
lea esi, [ecx + 1]
mov edx, esi
mov ecx, esi
mov al, byte [edx]
cmp al, 0x30
jge 0x10005068
mov dword [ebp - 0x58], edx
mov al, byte [edx]
cmp al, 0x30
jge 0x10005043
neg edi
mov eax, dword [0x1000c0f4]
mov ecx, dword [ebp - 0x28]
cmp byte [ebp - 0x12], 0
je 0x10005276
lea esi, [edi + ecx]
cmp esi, 0xfffffecc
jge 0x100051a5
divsd xmm1, qword [0x1000e540]
add esi, 0x134
movsd qword [ebp - 0x48], xmm1
cmp esi, 0xfffffecc
jge 0x1000517e
xorps xmm0, xmm0
jmp 0x100051fd
mov ecx, dword [ebp - 0x28]
mov eax, 0x134
sub eax, ecx
cmp byte [esi], 0x30
mov dword [ebp - 0x3c], eax
jl 0x10005174
mov al, byte [esi]
cmp al, 0x39
jg 0x10005084
movsx eax, byte [esi]
lea edi, [edi + edi*4]
lea edi, [edi - 0x18]
lea edx, [esi + 1]
mov dword [ebp - 0x58], edx
lea edi, [eax + edi*2]
cmp edi, dword [ebp - 0x3c]
jg 0x1000510c
mov al, byte [edx]
mov esi, edx
cmp al, 0x30
jge 0x100050e4
jmp 0x10005084
mov edi, dword [ebp - 0x30]
add edi, 0x18
cmp dword [edi], 0
je 0x1000512f
push 0x678
push str.X:BaseLSE_UPDATEDiscord_RPCLSERPCDiscordRichPresence_src_rapidjson_reader.h
push str._HasParseError__
call dword [0x1000c0f4]
add esp, 0xc
mov esi, dword [ebp - 0x38]
lea ecx, [edi + 4]
mov eax, 0xd
jmp 0x1000541d
mov edi, dword [ebp - 0x30]
cmp dword [edi + 0x18], 0
je 0x10005160
push 0x67d
push str.X:BaseLSE_UPDATEDiscord_RPCLSERPCDiscordRichPresence_src_rapidjson_reader.h
push str._HasParseError__
call dword [0x1000c0f4]
add esp, 0xc
mov eax, dword [ebp - 0x20]
sub esi, eax
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x1c], esi
jmp 0x10005424
mov eax, dword [0x1000c0f4]
jmp 0x1000508c
neg esi
js 0x1000518a
cmp esi, 0x134
jle 0x100051a0
push 0x30
push str.X:BaseLSE_UPDATEDiscord_RPCLSERPCDiscordRichPresence_src_rapidjsoninternalpow10.h
push str.n___0__n___308
call eax
movsd xmm1, qword [ebp - 0x48]
add esp, 0xc
movaps xmm0, xmm1
jmp 0x100051f4
test esi, esi
js 0x100051d2
cmp esi, 0x134
jle 0x100051c2
push 0x30
push str.X:BaseLSE_UPDATEDiscord_RPCLSERPCDiscordRichPresence_src_rapidjsoninternalpow10.h
push str.n___0__n___308
call eax
add esp, 0xc
movsd xmm0, qword [ebp - 0x48]
mulsd xmm0, qword [esi*8 + 0x1000d070]
jmp 0x100051fd
neg esi
js 0x100051de
cmp esi, 0x134
jle 0x100051ef
push 0x30
push str.X:BaseLSE_UPDATEDiscord_RPCLSERPCDiscordRichPresence_src_rapidjsoninternalpow10.h
push str.n___0__n___308
call eax
add esp, 0xc
movsd xmm0, qword [ebp - 0x48]
divsd xmm0, qword [esi*8 + 0x1000d070]
comisd xmm0, xmmword [0x1000e548]
jbe 0x1000523b
mov edi, dword [ebp - 0x30]
cmp dword [edi + 0x18], 0
je 0x10005229
mov eax, dword [0x1000c0f4]
push 0x6ac
push str.X:BaseLSE_UPDATEDiscord_RPCLSERPCDiscordRichPresence_src_rapidjson_reader.h
push str._HasParseError__
call eax
add esp, 0xc
mov esi, dword [ebp - 0x38]
mov dword [edi + 0x18], 0xd
mov dword [edi + 0x1c], esi
jmp 0x10005421
cmp byte [ebp - 0x13], 0
je 0x10005248
xorps xmm0, xmmword [0x1000e570]
push ecx
mov ecx, dword [ebx + 0xc]
movsd qword [ebp - 0x48], xmm0
lea ecx, [ecx + 0x18]
call fcn.10005910
movsd xmm3, qword [ebp - 0x48]
xorps xmm0, xmm0
mov ecx, 0x216
movups xmmword [eax], xmm0
mov word [eax + 0xe], cx
movsd qword [eax], xmm3
jmp 0x10005421
mov ecx, dword [ebx + 0xc]
add ecx, 0x18
cmp byte [ebp - 0x11], 0
push ecx
je 0x1000538b
cmp byte [ebp - 0x13], 0
je 0x1000531e
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
neg esi
adc edi, 0
neg edi
call fcn.10005910
mov ecx, eax
xorps xmm0, xmm0
mov eax, 0x96
movups xmmword [ecx], xmm0
mov dword [ecx], esi
mov dword [ecx + 4], edi
mov word [ecx + 0xe], ax
test edi, edi
jl 0x100052f9
jg 0x100052c3
test esi, esi
jb 0x100052f9
mov eax, 0x196
mov word [ecx + 0xe], ax
mov edx, eax
xor eax, eax
or eax, edi
jne 0x100052df
mov eax, 0x1d6
mov word [ecx + 0xe], ax
mov edx, eax
and esi, 0x80000000
or esi, edi
jne 0x10005421
or edx, 0x20
mov word [ecx + 0xe], dx
jmp 0x10005421
cmp edi, 0xffffffff
jl 0x10005421
jg 0x10005310
cmp esi, 0x80000000
jb 0x10005421
mov eax, 0xb6
mov word [ecx + 0xe], ax
jmp 0x10005421
call fcn.10005910
mov edx, dword [ebp - 0x1c]
mov esi, eax
mov ecx, dword [ebp - 0x18]
xorps xmm0, xmm0
mov eax, 0x116
mov edi, eax
movups xmmword [esi], xmm0
mov dword [esi], ecx
mov dword [esi + 4], edx
mov word [esi + 0xe], ax
test edx, edx
jl 0x10005356
jg 0x1000534b
test ecx, ecx
jb 0x10005356
mov eax, 0x196
mov word [esi + 0xe], ax
mov edi, eax
movzx eax, di
mov dword [ebp - 0x3c], eax
xor eax, eax
or eax, edx
jne 0x1000536e
or edi, 0x40
mov word [esi + 0xe], di
movzx eax, di
jmp 0x10005371
mov eax, dword [ebp - 0x3c]
and ecx, 0x80000000
or ecx, edx
jne 0x10005421
or eax, 0x20
mov word [esi + 0xe], ax
jmp 0x10005421
cmp byte [ebp - 0x13], 0
je 0x100053c0
mov edi, dword [ebp - 0x2c]
neg edi
call fcn.10005910
mov esi, eax
xorps xmm0, xmm0
mov eax, edi
test edi, edi
cdq
mov ecx, 0xb6
movups xmmword [esi], xmm0
mov dword [esi], eax
mov eax, 0x1f6
cmovns ecx, eax
mov dword [esi + 4], edx
mov word [esi + 0xe], cx
jmp 0x10005421
call fcn.10005910
mov ecx, dword [ebp - 0x2c]
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax], ecx
shr ecx, 0x1a
not ecx
mov dword [eax + 4], 0
and ecx, 0x20
or ecx, 0x1d6
mov word [eax + 0xe], cx
jmp 0x10005421
cmp dword [ecx + 0x18], 0
lea edi, [ecx + 0x18]
je 0x1000540c
push 0x5fd
push str.X:BaseLSE_UPDATEDiscord_RPCLSERPCDiscordRichPresence_src_rapidjson_reader.h
push str._HasParseError__
call dword [0x1000c0f4]
add esp, 0xc
mov eax, 3
sub esi, dword [ebp - 0x20]
mov edx, 4
mov ecx, edi
add ecx, edx
mov dword [edi], eax
mov dword [ecx], esi
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebx + 8]
movq xmm0, qword [ebp - 0x58]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8