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

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
mov edi, dword [esp + 0x24]
mov dword [ebp], 0
mov al, byte [ebx]
cmp al, 0xa
je 0x446ff3
cmp al, 0xd
je 0x446ff3
mov ecx, dword [edi + 0xc4]
mov esi, 4
mov ebp, dword [esp + 0x2c]
lea eax, [ecx + 1]
mov dword [edi + 0xc4], eax
test ecx, ecx
jne 0x446f15
mov dword [edi + 0xd0], 0
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 0x2ac]
mov eax, dword [eax + 0x48]
test al, 3
je 0x446c98
mov al, byte [ebx]
mov esi, ebx
test al, al
je 0x446b02
cmp al, 0x20
je 0x446afa
cmp al, 9
jne 0x446b02
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x446af2
push 5
push 0x481c44
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x446bc6
movsx ecx, byte [esi + 5]
mov eax, ecx
sub eax, 0x31
je 0x446bf3
sub eax, 1
je 0x446b4f
sub eax, 1
je 0x446b4f
push 0x482110
push edi
call fcn.00435890
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov al, byte [esi + 6]
cmp al, 0x20
je 0x446b5a
cmp al, 9
jne 0x446bc6
lea eax, [ecx - 0x30]
lea eax, [eax + eax*4]
add eax, eax
mov dword [edi + 0xd0], eax
mov cl, byte [esi + 7]
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x446bc6
mov dl, byte [esi + 8]
lea eax, [edx - 0x30]
cmp al, 9
ja 0x446bc6
mov dh, byte [esi + 9]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0x446bc6
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, dl
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, dh
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [edi + 0xd4], eax
mov al, byte [esi + 0xa]
cmp al, 0x20
je 0x446d76
cmp al, 9
je 0x446d76
cmp al, 0xa
jl 0x446bc6
cmp al, 0xd
jle 0x446d76
push ebp
push ebx
push edi
call fcn.00445e80
add esp, 0xc
cmp eax, 1
jne 0x446f41
mov dword [edi + 0xd4], 0xc8
mov dword [edi + 0xd0], 0xa
jmp 0x446d76
cmp byte [esi + 6], 0x2e
jne 0x446c7d
mov al, byte [esi + 7]
cmp al, 0x30
je 0x446c08
cmp al, 0x31
jne 0x446c7d
mov cl, byte [esi + 8]
cmp cl, 0x20
je 0x446c15
cmp cl, 9
jne 0x446c7d
movsx eax, al
sub eax, 0x26
mov dword [edi + 0xd0], eax
mov cl, byte [esi + 9]
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x446c7d
mov dl, byte [esi + 0xa]
lea eax, [edx - 0x30]
cmp al, 9
ja 0x446c7d
mov dh, byte [esi + 0xb]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0x446c7d
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, dl
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, dh
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [edi + 0xd4], eax
mov al, byte [esi + 0xc]
cmp al, 0x20
je 0x446d76
cmp al, 9
je 0x446d76
sub al, 0xa
cmp al, 3
jbe 0x446d76
push 0x4820e4
push edi
call fcn.00435890
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
test eax, 0x40000
je 0x446f41
mov al, byte [ebx]
mov esi, ebx
test al, al
je 0x446cc0
nop dword [eax + eax]
cmp al, 0x20
je 0x446cb8
cmp al, 9
jne 0x446cc0
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x446cb0
push 5
push 0x481c4c
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x446f41
mov al, byte [esi + 5]
sub al, 0x30
cmp al, 9
ja 0x446f48
cmp byte [esi + 6], 0x2e
jne 0x446f48
mov al, byte [esi + 7]
sub al, 0x30
cmp al, 9
ja 0x446f48
mov al, byte [esi + 8]
cmp al, 0x20
je 0x446d0c
cmp al, 9
jne 0x446f48
mov cl, byte [esi + 9]
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x446f48
mov dl, byte [esi + 0xa]
lea eax, [edx - 0x30]
cmp al, 9
ja 0x446f48
mov dh, byte [esi + 0xb]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0x446f48
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, dl
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, dh
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [edi + 0xd4], eax
mov al, byte [esi + 0xc]
cmp al, 0x20
je 0x446d6c
cmp al, 9
je 0x446d6c
sub al, 0xa
cmp al, 3
ja 0x446f48
mov dword [edi + 0xd0], 0xb
mov ecx, dword [edi + 0xd0]
mov eax, ecx
mov esi, dword [edi + 0x18]
sub eax, 0xa
je 0x446da0
sub eax, 1
je 0x446da0
mov eax, ecx
mov ecx, 0xa
cdq
idiv ecx
mov ecx, edx
mov edx, eax
mov eax, 0x481e60
jmp 0x446ddd
mov al, byte [esi + 0x514]
test al, al
je 0x446df6
movzx ecx, al
mov eax, 0xcccccccd
mul ecx
mov eax, 0x66666667
shr edx, 3
mov dword [esp + 0x24], edx
imul dword [edi + 0xd0]
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0x24]
cmp ecx, edx
je 0x446df6
mov eax, 0x481e34
push ecx
push edx
push eax
push edi
call fcn.00435890
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [edi + 0xd4]
mov dword [edi + 0xd10], eax
mov eax, dword [edi + 0xd0]
mov dword [edi + 0xd18], eax
movzx eax, byte [edi + 0xd0]
mov byte [esi + 0x514], al
mov al, byte [edi + 0xced]
test al, al
je 0x446e34
mov ecx, dword [edi + 0xd0]
movzx eax, al
cmp eax, ecx
jle 0x446e46
jmp 0x446e3a
mov cl, byte [edi + 0xd0]
mov byte [edi + 0xced], cl
mov ecx, dword [edi + 0xd0]
mov eax, dword [edi + 0xbd0]
or eax, dword [edi + 0xbd4]
je 0x446e70
cmp byte [edi + 0xcee], 0
jne 0x446e70
cmp dword [edi + 0xd4], 0x1a0
jne 0x446e70
mov byte [edi + 0x132], 1
cmp ecx, 0xa
jne 0x446e8d
push 0x481e90
push edi
call fcn.00435960
push 1
push esi
call fcn.00437de0
add esp, 0x10
jmp 0x446eb0
cmp ecx, 0x14
je 0x446ea4
cmp dword [edi + 0xdc], 2
jne 0x446eb0
cmp dword [edi + 0xd4], 0x65
jne 0x446eb0
mov eax, dword [esi + 0x4e8]
mov dword [eax], 2
mov ecx, dword [edi + 0xd4]
lea eax, [ecx - 0x64]
cmp eax, 0x63
setbe al
mov byte [edi + 0x133], al
sub ecx, 0xcc
je 0x446ee1
sub ecx, 0x64
jne 0x446f10
cmp byte [edi + 0x3b0], cl
je 0x446ee1
mov byte [edi + 0xdd0], 1
mov dword [edi + 0x88], 0
mov dword [edi + 0x8c], 0
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 0
mov byte [edi + 0x133], 1
mov esi, 0xc
push ebp
push 0
push ebx
call sub.VCRUNTIME140.dll_memchr
add esp, 0xc
test eax, eax
je 0x446f55
mov eax, 0x481eb4
push eax
push edi
call fcn.00435890
add esp, 8
mov eax, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov byte [edi + 0x129], 0
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x10
ret
mov ecx, dword [edi + 0xc4]
cmp ecx, 2
jl 0x446f9b
mov al, byte [ebx]
cmp al, 0x20
je 0x446f6a
cmp al, 9
jne 0x446f6f
cmp ecx, 2
jg 0x446f9b
push ebp
push 0x3a
push ebx
call sub.VCRUNTIME140.dll_memchr
add esp, 0xc
test eax, eax
jne 0x446f9b
mov eax, 0x481ec8
push eax
push edi
call fcn.00435890
add esp, 8
mov eax, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push ebp
push ebx
push edi
call fcn.004445f0
add esp, 0xc
test eax, eax
jne 0x44706e
push ebp
push ebx
push 1
push edi
call fcn.004357e0
mov eax, dword [edi + 0xd4]
add esp, 0x10
sub eax, 0x64
cmp eax, 0x64
jae 0x446fcc
or esi, 0x20
push ebp
push ebx
push esi
push edi
call fcn.00436ad0
add esp, 0x10
test eax, eax
jne 0x44706e
push eax
push ebp
push edi
call fcn.00443c30
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x2c]
lea eax, [esi + 1]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00427e50
push esi
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.00427e10
add esp, 0x14
test eax, eax
jne 0x44706e
lea eax, [edi + 0x878]
push eax
call fcn.00427e90
add esp, 4
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x38]
lea eax, [esp + 0x18]
push dword [esp + 0x38]
push eax
call fcn.00427e70
add esp, 4
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00427e80
add esp, 4
push eax
push edi
call fcn.00445fd0
mov ecx, dword [esp + 0x3c]
mov esi, eax
add dword [ebp], ecx
lea eax, [esp + 0x28]
push eax
call fcn.00427e20
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret