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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [0x1e21a000]
xor eax, esp
mov dword [esp + 0x148], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
push edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], esi
cmp eax, esi
je 0x4f958a
cmp ecx, esi
je 0x4f958a
push eax
call fcn.004eb01c
add esp, 4
mov dword [esp + 0x5c], eax
cmp eax, esi
je 0x4f95a7
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
lea ebx, [eax + 0x64]
mov dword [esp + 0x10], eax
mov eax, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x4c], ebx
call fcn.004e9bbc
mov dword [esp + 0x48], eax
cmp eax, esi
je 0x4f94f0
mov edi, dword [eax + 0xc]
mov esi, dword [esp + 0x38]
mov eax, dword [esi + 4]
mov edx, dword [eax + 0x54]
and edx, 0x4000000
mov dword [esp + 0x34], edi
je 0x4f88d8
mov ecx, dword [esi + 8]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x3c], 0
jmp 0x4f88e8
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x3c], 0xfffffffe
mov ecx, dword [eax + 0x38]
test ecx, ecx
je 0x4f8916
cmp dword [ecx + 4], 0
je 0x4f8916
test edx, edx
jne 0x4f8916
cmp eax, 0x1e2391a8
je 0x4f8916
push 0x1e2391a8
push eax
call fcn.004de5ac
add esp, 8
test eax, eax
jne 0x4f8916
mov dword [esp + 0x54], esi
sub dword [esp + 0x10], 1
js 0x4f92c8
mov esi, dword [esp + 0x1c]
lea esp, [esp]
cmp word [esi], 0x25
je 0x4f898b
sub ebx, 1
mov dword [esp + 0x24], ebx
jns 0x4f8976
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x4c]
add ebx, 0x64
lea edx, [esp + 0x48]
add eax, ebx
push edx
mov dword [esp + 0x50], eax
call fcn.004e9d6c
add esp, 4
test eax, eax
jl 0x4f94d7
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + 0xc]
sub eax, ebx
dec ebx
lea edi, [edx + eax*2]
mov dword [esp + 0x24], ebx
mov ax, word [esi]
mov word [edi], ax
add edi, 2
mov dword [esp + 0x34], edi
add esi, 2
jmp 0x4f92bd
xor edi, edi
or eax, 0xffffffff
xor edx, edx
add esi, 2
cmp word [esi], 0x28
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], edi
jne 0x4f8a7d
mov ebx, 1
mov ecx, ebx
cmp dword [esp + 0x54], edi
je 0x4f935a
add esi, 2
sub dword [esp + 0x10], ebx
mov edx, esi
sub dword [esp + 0x10], ebx
js 0x4f9372
movzx eax, word [esi]
cmp ax, 0x29
jne 0x4f89e4
sub ecx, ebx
jmp 0x4f89ec
cmp ax, 0x28
jne 0x4f89ec
add ecx, ebx
add esi, 2
cmp ecx, edi
mov dword [esp + 0x1c], esi
jg 0x4f89cd
sub esi, edx
sar esi, 1
dec esi
push esi
push edx
call fcn.004e9eac
mov esi, eax
add esp, 8
test esi, esi
je 0x4f94d7
cmp dword [esp + 0x58], 0
je 0x4f8a34
mov eax, dword [esp + 0x38]
add dword [eax], 0xffffffff
jne 0x4f8a2c
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x18]
push eax
call edx
add esp, 4
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x54]
push esi
push eax
call fcn.0048f99c
add esp, 8
add dword [esi], 0xffffffff
mov edi, eax
mov dword [esp + 0x38], edi
jne 0x4f8a59
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x18]
push esi
call edx
add esp, 4
test edi, edi
je 0x4f94d7
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x3c], 0xfffffffe
mov ecx, dword [esp + 0x10]
sub ecx, 1
js 0x4f93ee
mov edi, edi
movzx ebx, word [esi]
movzx eax, bx
sub eax, 0x20
add esi, 2
cmp eax, 0x10
ja 0x4f8ac7
movzx eax, byte [eax + 0x1e0f2f3c]
jmp dword [eax*4 + 0x1e0f2f24]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], esi
cmp bx, 0x2a
jne 0x4f8b74
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
cmp ecx, edx
mov eax, ecx
jge 0x4f92f9
inc ecx
mov dword [esp + 0x3c], ecx
test edx, edx
jge 0x4f8afe
mov eax, dword [esp + 0x38]
jmp 0x4f8b0c
mov ecx, dword [esp + 0x38]
push eax
push ecx
call fcn.004db9cc
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x4f94d7
mov edx, dword [eax + 4]
test dword [edx + 0x54], 0x800000
je 0x4f938b
push eax
call fcn.004baffc
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, 0xffffffff
jne 0x4f8b4a
mov ecx, dword [0x1e274ec8]
cmp dword [ecx + 0x28], 0
jne 0x4f94d7
test eax, eax
jge 0x4f8b59
or dword [esp + 0x18], 1
neg eax
mov dword [esp + 0x2c], eax
sub dword [esp + 0x10], 1
js 0x4f93ee
mov eax, dword [esp + 0x1c]
movzx ebx, word [eax]
add eax, 2
mov dword [esp + 0x1c], eax
jmp 0x4f8be0
lea eax, [ebx - 0x30]
cmp ax, 9
ja 0x4f8be4
movzx edi, bx
sub edi, 0x30
sub dword [esp + 0x10], 1
mov dword [esp + 0x2c], edi
js 0x4f8be4
jmp 0x4f8b94
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
movzx ebx, word [eax]
add eax, 2
lea ecx, [ebx - 0x30]
mov dword [esp + 0x1c], eax
cmp cx, 9
ja 0x4f8be4
movzx esi, bx
mov ecx, 0x8000002f
sub ecx, esi
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jg 0x4f93a4
sub dword [esp + 0x10], 1
lea ecx, [edi + edi*4]
lea edi, [esi + ecx*2 - 0x30]
mov dword [esp + 0x2c], edi
jns 0x4f8b90
mov edx, dword [esp + 0x18]
cmp bx, 0x2e
jne 0x4f8cc0
mov esi, 1
sub dword [esp + 0x10], esi
mov dword [esp + 0x30], 0
js 0x4f93ee
mov eax, dword [esp + 0x1c]
movzx ebx, word [eax]
add eax, 2
mov dword [esp + 0x1c], eax
cmp bx, 0x2a
jne 0x4f8d2c
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
mov edx, eax
jge 0x4f9312
add eax, esi
mov dword [esp + 0x3c], eax
test ecx, ecx
jge 0x4f8c43
mov edx, dword [esp + 0x38]
mov dword [esp + 0x14], edx
jmp 0x4f8c55
mov eax, dword [esp + 0x38]
push edx
push eax
call fcn.004db9cc
add esp, 8
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], 0
je 0x4f94d7
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
test dword [edx + 0x54], 0x800000
je 0x4f93bc
mov eax, ecx
push eax
call fcn.004bafac
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, 0xffffffff
jne 0x4f8c98
mov ecx, dword [0x1e274ec8]
cmp dword [ecx + 0x28], 0
jne 0x4f94d7
test eax, eax
jge 0x4f8ca4
mov dword [esp + 0x30], 0
sub dword [esp + 0x10], esi
js 0x4f93ee
mov eax, dword [esp + 0x1c]
movzx ebx, word [eax]
mov edx, dword [esp + 0x18]
add eax, 2
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x10], 0
jl 0x4f93ee
cmp bx, 0x68
je 0x4f8cdd
cmp bx, 0x6c
je 0x4f8cdd
cmp bx, 0x4c
jne 0x4f8cf6
sub dword [esp + 0x10], 1
js 0x4f93ee
mov eax, dword [esp + 0x1c]
movzx ebx, word [eax]
add eax, 2
mov dword [esp + 0x1c], eax
cmp bx, 0x25
je 0x4f8dcb
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
mov esi, eax
jge 0x4f932b
inc eax
mov dword [esp + 0x3c], eax
test ecx, ecx
jge 0x4f8daa
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x14], ecx
jmp 0x4f8dc0
lea eax, [ebx - 0x30]
cmp ax, 9
ja 0x4f8cc0
movzx eax, bx
sub eax, 0x30
sub dword [esp + 0x10], esi
mov dword [esp + 0x30], eax
js 0x4f93ee
lea ecx, [ecx]
mov eax, dword [esp + 0x1c]
movzx ebx, word [eax]
add eax, 2
lea ecx, [ebx - 0x30]
mov dword [esp + 0x1c], eax
cmp cx, 9
ja 0x4f8cc0
movzx esi, bx
mov ecx, 0x8000002f
sub ecx, esi
mov eax, 0x66666667
imul ecx
mov eax, dword [esp + 0x30]
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp eax, ecx
jg 0x4f93d5
sub dword [esp + 0x10], 1
lea edx, [eax + eax*4]
lea eax, [esi + edx*2 - 0x30]
mov dword [esp + 0x30], eax
js 0x4f93ee
mov edx, dword [esp + 0x18]
jmp 0x4f8d4c
mov edx, dword [esp + 0x38]
push esi
push edx
call fcn.004db9cc
mov edx, dword [esp + 0x20]
add esp, 8
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], 0
je 0x4f94d7
movzx eax, bx
lea ecx, [eax - 0x25]
mov dword [esp + 0x40], 0
mov dword [esp + 0x50], 0x20
cmp ecx, 0x53
ja 0x4f9483
movzx ecx, byte [ecx + 0x1e0f2f68]
jmp dword [ecx*4 + 0x1e0f2f50]
sub dword [esp + 0x10], 1
jns 0x4f892c
mov edx, dword [esp + 0x44]
cmp dword [esp + 0x3c], edx
jge 0x4f94c0
cmp dword [esp + 0x54], 0
jne 0x4f94c0
mov eax, dword [0x1e23ac1c]
push 0x1e201d04
push eax
call fcn.0052338c
add esp, 8
jmp 0x4f94d7
mov ecx, dword [0x1e23ac1c]
push 0x1e201ad4
push ecx
call fcn.0052338c
add esp, 8
jmp 0x4f94d7
mov edx, dword [0x1e23ac1c]
push 0x1e201ad4
push edx
call fcn.0052338c
add esp, 8
jmp 0x4f94d7
mov eax, dword [0x1e23ac1c]
push 0x1e201ad4
push eax
call fcn.0052338c
add esp, 8
jmp 0x4f94d7
mov eax, dword [0x1e23ac1c]
push 0x1e201c04
push eax
call fcn.0052338c
add esp, 8
jmp 0x4f94d7
mov ecx, dword [0x1e23d3f4]
push 0x1e201c20
push ecx
call fcn.0052338c
add esp, 8
jmp 0x4f94d7
mov edx, dword [0x1e23ac1c]
push 0x1e201c38
push edx
call fcn.0052338c
add esp, 8
jmp 0x4f94d7
mov eax, dword [0x1e23d3f4]
push 0x1e201c44
push eax
call fcn.0052338c
add esp, 8
jmp 0x4f94d7
mov ecx, dword [0x1e23ac1c]
push 0x1e201c38
push ecx
call fcn.0052338c
add esp, 8
jmp 0x4f94d7
mov edx, dword [0x1e23d3f4]
push 0x1e201c54
push edx
call fcn.0052338c
add esp, 8
jmp 0x4f94d7
mov eax, dword [0x1e23d3f4]
push 0x1e201c64
push eax
call fcn.0052338c
add esp, 8
jmp 0x4f94d7
lea eax, [ebx - 0x1f]
movsx ecx, bl
cmp ax, 0x5f
jbe 0x4f9494
mov ecx, 0x3f
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x1c]
sub eax, dword [edx + 0xc]
sub eax, 2
sar eax, 1
push eax
movzx eax, bx
push eax
push ecx
mov ecx, dword [0x1e23d3f4]
push 0x1e201ccc
push ecx
call fcn.00523e7c
add esp, 0x14
jmp 0x4f94d7
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x48]
sub eax, ebx
push ecx
call fcn.004e9d6c
add esp, 4
test eax, eax
jge 0x4f9540
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4f94f0
add dword [eax], 0xffffffff
jne 0x4f94f0
mov edx, dword [eax + 4]
push eax
mov eax, dword [edx + 0x18]
call eax
add esp, 4
mov eax, dword [esp + 0x5c]
add dword [eax], 0xffffffff
jne 0x4f9505
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x18]
push eax
call edx
add esp, 4
cmp dword [esp + 0x58], 0
je 0x4f95a7
mov eax, dword [esp + 0x38]
add dword [eax], 0xffffffff
jne 0x4f95a7
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x18]
push eax
call edx
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.0054b1e4
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x58], 0
je 0x4f955c
mov eax, dword [esp + 0x38]
add dword [eax], 0xffffffff
jne 0x4f955c
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x18]
push eax
call edx
add esp, 4
mov eax, dword [esp + 0x5c]
add dword [eax], 0xffffffff
jne 0x4f9571
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x18]
push eax
call edx
add esp, 4
mov eax, dword [esp + 0x48]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.0054b1e4
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1e23f774]
push 0x20a8
push 0x1e203c14
push 0x1e208a44
push eax
call fcn.00523e7c
add esp, 0x10
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0054b1e4
mov esp, ebp
pop ebp
ret