Function at 0x510b5614
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
lea edi, [ebp - 8]
xor eax, eax
push ebp
push 0x510b6009
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax], edx
mov eax, dword [edi]
inc dword [eax + 0xe0]
mov eax, dword [edi]
mov eax, dword [eax + 0xe0]
mov edx, eax
dec edx
movzx edx, byte [edx]
cmp edx, 0x2e
jg 0x510b56a3
je 0x510b575e
cmp edx, 0x28
jg 0x510b568b
je 0x510b5a7e
sub edx, 1
jb 0x510b5bb8
sub edx, 0x23
je 0x510b571b
jmp 0x510b5e38
sub edx, 0x29
je 0x510b5bb8
dec edx
sub edx, 2
jb 0x510b5bc8
jmp 0x510b5e38
cmp edx, 0x5c
jg 0x510b56c5
je 0x510b5bd8
sub edx, 0x3f
je 0x510b5bc8
sub edx, 0x1c
je 0x510b57a1
jmp 0x510b5e38
sub edx, 0x5e
je 0x510b56d8
sub edx, 0x1e
je 0x510b5bb8
jmp 0x510b5e38
mov eax, dword [edi]
test byte [eax + 0x110], 0x10
je 0x510b56f9
mov eax, dword [edi]
cmp dword [eax + 0x128], 0
jne 0x510b570a
mov eax, dword [edi]
cmp byte [eax + 0x12c], 0
jne 0x510b570a
mov dl, 1
mov eax, dword [edi]
call fcn.510b4374
mov dword [ebp - 4], eax
jmp 0x510b5fe8
mov dl, 0x22
mov eax, dword [edi]
call fcn.510b4374
mov dword [ebp - 4], eax
jmp 0x510b5fe8
mov eax, dword [edi]
test byte [eax + 0x110], 0x10
je 0x510b573c
mov eax, dword [edi]
cmp dword [eax + 0x128], 0
jne 0x510b574d
mov eax, dword [edi]
cmp byte [eax + 0x12c], 0
jne 0x510b574d
mov dl, 2
mov eax, dword [edi]
call fcn.510b4374
mov dword [ebp - 4], eax
jmp 0x510b5fe8
mov dl, 0x23
mov eax, dword [edi]
call fcn.510b4374
mov dword [ebp - 4], eax
jmp 0x510b5fe8
mov eax, dword [edi]
test byte [eax + 0x110], 4
je 0x510b578a
mov dl, 3
mov eax, dword [edi]
call fcn.510b4374
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
or eax, 1
or eax, 2
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
jmp 0x510b5fe8
mov dl, 0x24
mov eax, dword [edi]
call fcn.510b4374
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
or dword [eax], 1
jmp 0x510b5fe8
cmp byte [eax], 0x5e
jne 0x510b57d5
mov eax, dword [edi]
test byte [eax + 0x110], 1
je 0x510b57bf
push ebp
mov al, 0x16
call fcn.510b5170
pop ecx
mov dword [ebp - 4], eax
jmp 0x510b57cb
push ebp
mov al, 5
call fcn.510b5170
pop ecx
mov dword [ebp - 4], eax
mov eax, dword [edi]
inc dword [eax + 0xe0]
jmp 0x510b57fa
mov eax, dword [edi]
test byte [eax + 0x110], 1
je 0x510b57ee
push ebp
mov al, 0x15
call fcn.510b5170
pop ecx
mov dword [ebp - 4], eax
jmp 0x510b57fa
push ebp
mov al, 4
call fcn.510b5170
pop ecx
mov dword [ebp - 4], eax
mov byte [ebp - 0x3f], 0
mov eax, dword [edi]
mov eax, dword [eax + 0xe0]
mov al, byte [eax]
cmp al, 0x5d
jne 0x510b5a1d
push ebp
call fcn.510b5474
pop ecx
mov eax, dword [edi]
inc dword [eax + 0xe0]
jmp 0x510b5a1d
mov eax, dword [edi]
mov esi, dword [eax + 0xe0]
cmp byte [esi], 0x2d
jne 0x510b596f
mov eax, esi
inc eax
cmp byte [eax], 0
je 0x510b596f
inc esi
cmp byte [esi], 0x5d
je 0x510b596f
cmp byte [ebp - 0x3f], 0
je 0x510b596f
mov eax, dword [edi]
inc dword [eax + 0xe0]
mov eax, dword [edi]
mov eax, dword [eax + 0xe0]
mov bl, byte [eax]
cmp bl, 0x5c
jne 0x510b58af
mov eax, dword [edi]
mov eax, dword [eax + 0xe0]
inc eax
mov al, byte [eax]
add al, 0xc0
cmp al, 0x37
ja 0x510b5887
and eax, 0x7f
bt dword [0x510b601c], eax
jae 0x510b5897
push ebp
mov al, 0x2d
call fcn.510b5280
pop ecx
jmp 0x510b5a1d
mov eax, dword [edi]
inc dword [eax + 0xe0]
push ebp
mov eax, dword [edi]
add eax, 0xe0
call fcn.510b54c4
pop ecx
mov ebx, eax
mov eax, dword [edi]
test byte [eax + 0x110], 2
je 0x510b58d6
cmp byte [ebp - 0x40], 0xe0
jne 0x510b58d6
cmp bl, 0xff
jne 0x510b58d6
push ebp
mov eax, 0x510b602c
call fcn.510b5490
pop ecx
jmp 0x510b5962
mov eax, dword [edi]
test byte [eax + 0x110], 2
je 0x510b58fa
cmp byte [ebp - 0x40], 0xc0
jne 0x510b58fa
cmp bl, 0xdf
jne 0x510b58fa
push ebp
mov eax, 0x510b6058
call fcn.510b5490
pop ecx
jmp 0x510b5962
mov eax, dword [edi]
test byte [eax + 0x110], 2
je 0x510b592a
cmp byte [ebp - 0x40], 0xe0
jne 0x510b592a
cmp bl, 0xdf
jne 0x510b592a
push ebp
mov eax, 0x510b602c
call fcn.510b5490
pop ecx
push ebp
mov eax, 0x510b6058
call fcn.510b5490
pop ecx
jmp 0x510b5962
cmp bl, byte [ebp - 0x40]
jae 0x510b593f
mov edx, 0x6d
mov eax, dword [edi]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x510b5fee
inc byte [ebp - 0x40]
push ebp
mov eax, ebx
call fcn.510b5280
pop ecx
cmp bl, byte [ebp - 0x40]
jbe 0x510b5962
push ebp
mov al, byte [ebp - 0x40]
call fcn.510b5280
pop ecx
inc byte [ebp - 0x40]
cmp bl, byte [ebp - 0x40]
ja 0x510b5950
mov eax, dword [edi]
inc dword [eax + 0xe0]
jmp 0x510b5a1d
mov eax, dword [edi]
mov eax, dword [eax + 0xe0]
cmp byte [eax], 0x5c
jne 0x510b5a04
mov eax, dword [edi]
inc dword [eax + 0xe0]
mov eax, dword [edi]
mov eax, dword [eax + 0xe0]
cmp byte [eax], 0
jne 0x510b59a5
mov edx, 0x6e
mov eax, dword [edi]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x510b5fee
mov eax, dword [edi]
mov eax, dword [eax + 0xe0]
mov al, byte [eax]
sub al, 0x64
je 0x510b59bd
sub al, 0xf
je 0x510b59dc
sub al, 4
je 0x510b59cb
jmp 0x510b59ed
push ebp
mov eax, 0x510b6084
call fcn.510b5490
pop ecx
jmp 0x510b5a15
push ebp
mov eax, dword [edi]
mov eax, dword [eax + 0x11c]
call fcn.510b5490
pop ecx
jmp 0x510b5a15
push ebp
mov eax, dword [edi]
mov eax, dword [eax + 0x118]
call fcn.510b5490
pop ecx
jmp 0x510b5a15
push ebp
push ebp
mov eax, dword [edi]
add eax, 0xe0
call fcn.510b54c4
pop ecx
call fcn.510b5474
pop ecx
jmp 0x510b5a15
push ebp
mov eax, dword [edi]
mov eax, dword [eax + 0xe0]
mov al, byte [eax]
call fcn.510b5474
pop ecx
mov eax, dword [edi]
inc dword [eax + 0xe0]
mov eax, dword [edi]
mov eax, dword [eax + 0xe0]
cmp byte [eax], 0
je 0x510b5a3b
mov eax, dword [edi]
mov eax, dword [eax + 0xe0]
cmp byte [eax], 0x5d
jne 0x510b5824
push ebp
xor eax, eax
call fcn.510b5280
pop ecx
mov eax, dword [edi]
mov eax, dword [eax + 0xe0]
cmp byte [eax], 0x5d
je 0x510b5a61
mov edx, 0x71
mov eax, dword [edi]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x510b5fee
mov eax, dword [edi]
inc dword [eax + 0xe0]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
or eax, 1
or eax, 2
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
jmp 0x510b5fe8
cmp byte [eax], 0x3f
jne 0x510b5b86
inc eax
cmp byte [eax], 0x23
jne 0x510b5ae8
mov eax, dword [edi]
add dword [eax + 0xe0], 2
jmp 0x510b5aa0
mov eax, dword [edi]
inc dword [eax + 0xe0]
mov eax, dword [edi]
mov eax, dword [eax + 0xe0]
mov al, byte [eax]
test al, al
je 0x510b5ab2
cmp al, 0x29
jne 0x510b5a98
mov eax, dword [edi]
mov eax, dword [eax + 0xe0]
cmp byte [eax], 0x29
je 0x510b5acf
mov edx, 0x7d
mov eax, dword [edi]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x510b5fee
mov eax, dword [edi]
inc dword [eax + 0xe0]
mov dl, 0x13
mov eax, dword [edi]
call fcn.510b4374
mov dword [ebp - 4], eax
jmp 0x510b5fe8
mov eax, dword [edi]
inc dword [eax + 0xe0]
mov eax, dword [edi]
mov eax, dword [eax + 0xe0]
mov dword [ebp - 0x4c], eax
jmp 0x510b5b05
mov eax, dword [edi]
inc dword [eax + 0xe0]
mov eax, dword [edi]
mov eax, dword [eax + 0xe0]
mov al, byte [eax]
test al, al
je 0x510b5b17
cmp al, 0x29
jne 0x510b5afd
mov eax, dword [edi]
mov ebx, dword [eax + 0xe0]
cmp byte [ebx], 0x29
jne 0x510b5b5d
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 0x4c]
call fcn.510047dc
mov eax, dword [ebp - 0x54]
mov ecx, ebx
sub ecx, dword [ebp - 0x4c]
mov edx, 1
call fcn.51004b04
mov edx, dword [ebp - 0x50]
mov eax, dword [edi]
lea ecx, [eax + 0x110]
mov eax, dword [edi]
mov eax, dword [eax]
call fcn.510b3f3c
test al, al
jne 0x510b5b6d
mov edx, 0x7f
mov eax, dword [edi]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x510b5fee
mov eax, dword [edi]
inc dword [eax + 0xe0]
mov dl, 0x13
mov eax, dword [edi]
call fcn.510b4374
mov dword [ebp - 4], eax
jmp 0x510b5fe8
lea ecx, [ebp - 0x48]
mov edx, 1
mov eax, dword [edi]
call fcn.510b4764
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x510b5ba8
xor eax, eax
mov dword [ebp - 0x44], eax
jmp 0x510b5fee
mov eax, dword [ebp - 0x48]
and eax, 5
mov edx, dword [ebp - 0xc]
or dword [edx], eax
jmp 0x510b5fe8
mov edx, 0x72
mov eax, dword [edi]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x510b5fee
mov edx, 0x73
mov eax, dword [edi]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x510b5fee
cmp byte [eax], 0
jne 0x510b5bed
mov edx, 0x74
mov eax, dword [edi]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x510b5fee
mov eax, dword [edi]
mov eax, dword [eax + 0xe0]
movzx eax, byte [eax]
cmp eax, 0x57
jg 0x510b5c37
je 0x510b5d95
cmp eax, 0x42
jg 0x510b5c20
je 0x510b5c75
add eax, 0xffffffcf
sub eax, 9
jb 0x510b5dcb
sub eax, 7
je 0x510b5c86
jmp 0x510b5e16
sub eax, 0x44
je 0x510b5cc9
sub eax, 0xf
je 0x510b5d23
jmp 0x510b5e16
cmp eax, 0x64
jg 0x510b5c4d
je 0x510b5ca8
sub eax, 0x5a
je 0x510b5c97
sub eax, 8
je 0x510b5c64
jmp 0x510b5e16
sub eax, 0x73
je 0x510b5cea
sub eax, 4
je 0x510b5d5c
jmp 0x510b5e16
mov dl, 0x25
mov eax, dword [edi]
call fcn.510b4374
mov dword [ebp - 4], eax
jmp 0x510b5e2b
mov dl, 0x26
mov eax, dword [edi]
call fcn.510b4374
mov dword [ebp - 4], eax
jmp 0x510b5e2b
mov dl, 1
mov eax, dword [edi]
call fcn.510b4374
mov dword [ebp - 4], eax
jmp 0x510b5e2b
mov dl, 2
mov eax, dword [edi]
call fcn.510b4374
mov dword [ebp - 4], eax
jmp 0x510b5e2b
mov dl, 0xc
mov eax, dword [edi]
call fcn.510b4374
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
or eax, 1
or eax, 2
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
jmp 0x510b5e2b
mov dl, 0xd
mov eax, dword [edi]
call fcn.510b4374
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
or eax, 1
or eax, 2
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
jmp 0x510b5e2b
push ebp
mov al, 4
call fcn.510b5170
pop ecx
mov dword [ebp - 4], eax
push ebp
mov eax, dword [edi]
mov eax, dword [eax + 0x118]
call fcn.510b5490
pop ecx
push ebp
xor eax, eax
call fcn.510b5280
pop ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
or eax, 1
or eax, 2
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
jmp 0x510b5e2b
push ebp
mov al, 5
call fcn.510b5170
pop ecx
mov dword [ebp - 4], eax
push ebp
mov eax, dword [edi]
mov eax, dword [eax + 0x118]
call fcn.510b5490
pop ecx
push ebp
xor eax, eax
call fcn.510b5280
pop ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
or eax, 1
or eax, 2
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
jmp 0x510b5e2b
push ebp
mov al, 4
call fcn.510b5170
pop ecx
mov dword [ebp - 4], eax
push ebp
mov eax, dword [edi]
mov eax, dword [eax + 0x11c]
call fcn.510b5490
pop ecx
push ebp
xor eax, eax
call fcn.510b5280
pop ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
or eax, 1
or eax, 2
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
jmp 0x510b5e2b
push ebp
mov al, 5
call fcn.510b5170
pop ecx
mov dword [ebp - 4], eax
push ebp
mov eax, dword [edi]
mov eax, dword [eax + 0x11c]
call fcn.510b5490
pop ecx
push ebp
xor eax, eax
call fcn.510b5280
pop ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
or eax, 1
or eax, 2
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
jmp 0x510b5e2b
mov eax, dword [edi]
test byte [eax + 0x110], 1
je 0x510b5de4
mov dl, 0x1d
mov eax, dword [edi]
call fcn.510b4374
mov dword [ebp - 4], eax
jmp 0x510b5df0
mov dl, 0x1c
mov eax, dword [edi]
call fcn.510b4374
mov dword [ebp - 4], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xe0]
mov dl, byte [eax]
sub dl, 0x30
mov eax, dword [edi]
call fcn.510b43b8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
or eax, 1
or eax, 2
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
jmp 0x510b5e2b
push ebp
push ebp
mov eax, dword [edi]
add eax, 0xe0
call fcn.510b54c4
pop ecx
call fcn.510b50b8
pop ecx
mov eax, dword [edi]
inc dword [eax + 0xe0]
jmp 0x510b5fe8
mov eax, dword [edi]
dec dword [eax + 0xe0]
mov edx, dword [edi]
test byte [edx + 0x110], 0x20
je 0x510b5ee7
mov eax, dword [edi]
mov eax, dword [eax + 0xe0]
mov al, byte [eax]
cmp al, 0x23
je 0x510b5e6b
add al, 0xf7
sub al, 2
jb 0x510b5e6b
sub al, 2
je 0x510b5e6b
sub al, 0x13
jne 0x510b5ee7
mov eax, dword [edi]
mov eax, dword [eax + 0xe0]
cmp byte [eax], 0x23
jne 0x510b5ebe
jmp 0x510b5e82
mov eax, dword [edi]
inc dword [eax + 0xe0]
mov eax, dword [edi]
mov eax, dword [eax + 0xe0]
mov al, byte [eax]
test al, al
je 0x510b5ea2
cmp al, 0xd
je 0x510b5ea2
cmp al, 0xa
jne 0x510b5e7a
jmp 0x510b5ea2
mov eax, dword [edi]
inc dword [eax + 0xe0]
mov eax, dword [edi]
mov eax, dword [eax + 0xe0]
mov al, byte [eax]
cmp al, 0xd
je 0x510b5e9a
cmp al, 0xa
je 0x510b5e9a
jmp 0x510b5ed6
mov eax, dword [edi]
inc dword [eax + 0xe0]
mov eax, dword [edi]
mov eax, dword [eax + 0xe0]
mov al, byte [eax]
add al, 0xf7
sub al, 2
jb 0x510b5eb6
sub al, 2
je 0x510b5eb6
sub al, 0x13
je 0x510b5eb6
mov dl, 0x13
mov eax, dword [edi]
call fcn.510b4374
mov dword [ebp - 4], eax
jmp 0x510b5fe8
mov edx, 0x510c655c
mov eax, dword [edi]
mov eax, dword [eax + 0xe0]
call fcn.510b4458
mov ebx, eax
test ebx, ebx
jg 0x510b5f2c
mov eax, dword [edi]
mov ebx, dword [eax + 0xe0]
cmp byte [ebx], 0x7b
je 0x510b5f1c
mov edx, 0x77
mov eax, dword [edi]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x510b5fee
mov edx, 0x510c655c
mov eax, ebx
inc eax
call fcn.510b4458
inc eax
mov ebx, eax
mov eax, dword [edi]
mov eax, dword [eax + 0xe0]
add eax, ebx
mov al, byte [eax]
cmp ebx, 1
jle 0x510b5f4e
cmp al, 0x2a
je 0x510b5f4d
cmp al, 0x2b
je 0x510b5f4d
cmp al, 0x3f
je 0x510b5f4d
cmp al, 0x7b
jne 0x510b5f4e
dec ebx
mov eax, dword [ebp - 0xc]
or dword [eax], 1
cmp ebx, 1
jne 0x510b5f5f
mov eax, dword [ebp - 0xc]
or dword [eax], 2
mov eax, dword [edi]
test byte [eax + 0x110], 1
je 0x510b5f78
mov dl, 0x14
mov eax, dword [edi]
call fcn.510b4374
mov dword [ebp - 4], eax
jmp 0x510b5fc3
mov dl, 8
mov eax, dword [edi]
call fcn.510b4374
mov dword [ebp - 4], eax
jmp 0x510b5fc3
mov eax, dword [edi]
test byte [eax + 0x110], 0x20
je 0x510b5fa9
mov eax, dword [edi]
mov eax, dword [eax + 0xe0]
mov al, byte [eax]
add al, 0xf7
sub al, 2
jb 0x510b5fba
sub al, 2
je 0x510b5fba
sub al, 0x13
je 0x510b5fba
mov eax, dword [edi]
mov eax, dword [eax + 0xe0]
mov dl, byte [eax]
mov eax, dword [edi]
call fcn.510b43b8
mov eax, dword [edi]
inc dword [eax + 0xe0]
dec ebx
test ebx, ebx
jle 0x510b5fdf
mov eax, dword [edi]
test byte [eax + 0x110], 0x20
je 0x510b5f86
mov eax, dword [edi]
mov eax, dword [eax + 0xe0]
cmp byte [eax], 0x23
jne 0x510b5f86
xor edx, edx
mov eax, dword [edi]
call fcn.510b43b8
mov eax, dword [ebp - 4]
mov dword [ebp - 0x44], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510b6010
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.51004608
ret