Function at 0x515c6a
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
movzx ecx, byte [edx]
mov eax, ecx
push 4
pop ebx
cmp ecx, 0x2e
ja 0x515d8a
je 0x515d70
sub eax, 9
cmp eax, 0x24
ja case.0x515c9d.11
movzx eax, byte [eax + 0x516202]
jmp dword [eax*4 + 0x5161ce]
movzx eax, byte [edx + 1]
xor esi, esi
inc esi
test byte [eax + 0x559a48], 1
je 0x515cc2
inc esi
movzx ecx, byte [esi + edx]
test byte [ecx + 0x559a48], 1
jne 0x515cb4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x97
mov eax, esi
jmp 0x5161c9
cmp byte [edx + 1], 0x2d
jne 0x515cf1
movzx eax, byte [edx + 2]
push 2
pop esi
jmp 0x515ceb
cmp eax, 0xa
je 0x515cc2
inc esi
movzx eax, byte [esi + edx]
test eax, eax
jne 0x515ce1
jmp 0x515cc2
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x5a
xor eax, eax
inc eax
jmp 0x5161c9
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x16
jmp 0x515cfa
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x17
jmp 0x515cfa
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x59
jmp 0x515cfa
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x5b
jmp 0x515cfa
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x5d
jmp 0x515cfa
cmp byte [edx + 1], 0x3d
mov eax, dword [ebp + 0xc]
push 2
je 0x515d4f
mov dword [eax], 0x96
jmp 0x515f8c
mov dword [eax], 0x4e
jmp 0x515f8c
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x1a
jmp 0x515cfa
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x55
jmp 0x515cfa
movzx eax, byte [edx + 1]
test byte [eax + 0x559a48], bl
jne 0x515ddc
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x7a
jmp 0x515cfa
cmp ecx, 0x3f
ja 0x515fee
je 0x515fbd
cmp ecx, 0x3b
ja 0x515f1e
je 0x515f11
cmp ecx, 0x2f
je 0x515ecb
jbe case.0x515c9d.11
cmp ecx, 0x39
jbe 0x515ddc
cmp ecx, 0x3a
je case.0x515c9d.35
test byte [ecx + 0x559a48], 0x46
jne 0x516129
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x96
jmp 0x515cfa
mov edi, dword [ebp + 0xc]
mov dword [edi], 0x84
mov cl, byte [edx]
cmp cl, 0x30
jne 0x515e2b
mov al, byte [edx + 1]
cmp al, 0x78
je 0x515df7
cmp al, 0x58
jne 0x515e2b
movzx eax, byte [edx + 2]
test byte [eax + 0x559a48], 8
je 0x515e2b
movzx eax, byte [edx + 3]
push 3
pop esi
test byte [eax + 0x559a48], 8
je 0x515ccb
inc esi
movzx ecx, byte [esi + edx]
test byte [ecx + 0x559a48], 8
jne 0x515e18
jmp 0x515ccb
xor esi, esi
movzx eax, cl
jmp 0x515e37
inc esi
movzx eax, byte [esi + edx]
test byte [eax + 0x559a48], bl
jne 0x515e32
cmp byte [esi + edx], 0x2e
jne 0x515e58
inc esi
movzx eax, byte [esi + edx]
test byte [eax + 0x559a48], bl
jne 0x515e45
mov dword [edi], 0x85
mov al, byte [esi + edx]
cmp al, 0x65
je 0x515e63
cmp al, 0x45
jne 0x515ea1
mov cl, byte [esi + edx + 1]
movzx eax, cl
test byte [eax + 0x559a48], bl
jne 0x515e89
cmp cl, 0x2b
je 0x515e7c
cmp cl, 0x2d
jne 0x515ea1
movzx eax, byte [esi + edx + 2]
test byte [eax + 0x559a48], bl
je 0x515ea1
add esi, 2
jmp 0x515e8f
inc esi
movzx eax, byte [esi + edx]
test byte [eax + 0x559a48], bl
jne 0x515e8e
mov dword [edi], 0x85
movzx eax, byte [esi + edx]
test byte [eax + 0x559a48], 0x46
je 0x515ccb
inc esi
mov dword [edi], 0x96
movzx ecx, byte [esi + edx]
test byte [ecx + 0x559a48], 0x46
jne 0x515eb2
jmp 0x515ccb
cmp byte [edx + 1], 0x2a
jne 0x515f03
mov cl, byte [edx + 2]
test cl, cl
je 0x515f03
push 3
pop eax
movzx ecx, cl
cmp ecx, 0x2a
jne 0x515ee9
cmp byte [eax + edx], 0x2f
je 0x515ef4
movzx ecx, byte [eax + edx]
test ecx, ecx
je 0x515ef5
inc eax
jmp 0x515ede
inc eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x97
jmp 0x5161c9
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x5c
jmp 0x515cfa
mov ecx, dword [ebp + 0xc]
xor eax, eax
inc eax
mov dword [ecx], eax
jmp 0x5161c9
sub eax, 0x3c
je 0x515f78
sub eax, 1
je 0x515f60
sub eax, 1
jne case.0x515c9d.11
movzx eax, byte [edx + 1]
cmp eax, 0x3d
jne 0x515f45
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x53
jmp 0x515f8a
cmp eax, 0x3e
mov eax, dword [ebp + 0xc]
jne 0x515f55
mov dword [eax], 0x58
jmp 0x515f8a
mov dword [eax], pe_nt_image_headers32
jmp 0x515cfa
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x4f
xor eax, eax
cmp byte [edx + 1], 0x3d
sete al
inc eax
jmp 0x5161c9
movzx eax, byte [edx + 1]
cmp eax, 0x3d
jne 0x515f92
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x51
push 2
pop eax
jmp 0x5161c9
cmp eax, 0x3e
jne 0x515fa2
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x4e
jmp 0x515f8a
cmp eax, 0x3c
mov eax, dword [ebp + 0xc]
jne 0x515fb2
mov dword [eax], 0x57
jmp 0x515f8a
mov dword [eax], 0x52
jmp 0x515cfa
mov eax, dword [ebp + 0xc]
xor esi, esi
push 4
pop ebx
inc esi
mov dword [eax], 0x87
movzx eax, byte [edx + 1]
test byte [eax + 0x559a48], bl
je 0x515ccb
inc esi
movzx ecx, byte [esi + edx]
test byte [ecx + 0x559a48], bl
jne 0x515fdc
jmp 0x515ccb
sub eax, 0x40
je case.0x515c9d.35
sub eax, 0x18
je 0x5160d1
sub eax, 3
je 0x5160a6
sub eax, 5
je case.0x515c9d.34
sub eax, 0x18
je 0x5160d1
sub eax, 4
je 0x516034
dec eax
sub eax, 1
jne case.0x515c9d.11
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x60
jmp 0x515cfa
cmp byte [edx + 1], 0x7c
mov eax, dword [ebp + 0xc]
je 0x516048
mov dword [eax], 0x56
jmp 0x515cfa
mov dword [eax], 0x5e
jmp 0x515f8a
movzx edi, byte [edx + 1]
xor esi, esi
inc esi
jmp 0x51606f
cmp edi, ecx
jne 0x51606a
movzx eax, byte [edx + esi + 1]
cmp eax, ecx
jne 0x516073
inc esi
inc esi
movzx edi, byte [esi + edx]
test edi, edi
jne 0x51605c
cmp edi, 0x27
jne 0x516089
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x61
lea eax, [esi + 1]
jmp 0x5161c9
test edi, edi
je 0x516098
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x1b
jmp 0x516081
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x96
jmp 0x515ccb
xor eax, eax
inc eax
jmp 0x5160b4
movzx ecx, byte [eax + edx]
test ecx, ecx
je 0x5160b9
inc eax
cmp ecx, 0x5d
jne 0x5160ab
cmp ecx, 0x5d
mov edx, 0x96
mov ecx, dword [ebp + 0xc]
push 0x1b
pop esi
cmove edx, esi
mov dword [ecx], edx
jmp 0x5161c9
cmp byte [edx + 1], 0x27
jne case.0x515c9d.11
mov esi, dword [ebp + 0xc]
push 2
pop ecx
mov dword [esi], 0x86
movzx eax, byte [edx + 2]
jmp 0x5160f2
inc ecx
movzx eax, byte [ecx + edx]
test byte [eax + 0x559a48], 8
jne 0x5160ed
cmp byte [ecx + edx], 0x27
jne 0x516106
test cl, 1
je 0x51611a
mov dword [esi], 0x96
jmp 0x516113
cmp al, 0x27
je 0x51611a
inc ecx
mov al, byte [ecx + edx]
test al, al
jne 0x51610e
cmp byte [ecx + edx], 0
lea eax, [ecx + 1]
cmove eax, ecx
jmp 0x5161c9
movzx eax, byte [edx + 1]
xor esi, esi
inc esi
jmp 0x516137
inc esi
movzx eax, byte [esi + edx]
test byte [eax + 0x559a48], 0x46
jne 0x516132
push esi
push edx
call fcn.004fde13
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x515ccb
mov edi, dword [ebp + 0xc]
xor ecx, ecx
xor esi, esi
inc ecx
mov dword [edi], 0x87
movzx ebx, byte [edx + 1]
test ebx, ebx
je 0x5161c1
movzx eax, bl
test byte [eax + 0x559a48], 0x46
je 0x516178
inc esi
jmp 0x51618d
cmp ebx, 0x28
jne 0x516181
test esi, esi
jg 0x516198
cmp ebx, 0x3a
jne 0x5161bd
cmp byte [edx + ecx + 1], bl
jne 0x5161bd
inc ecx
inc ecx
movzx ebx, byte [ecx + edx]
test ebx, ebx
jne 0x516169
jmp 0x5161bd
inc ecx
movzx ebx, byte [ecx + edx]
test ebx, ebx
je 0x5161af
test byte [ebx + 0x559a48], 1
jne 0x5161af
cmp ebx, 0x29
jne 0x516198
cmp ebx, 0x29
jne 0x5161b7
inc ecx
jmp 0x5161bd
mov dword [edi], 0x96
test esi, esi
jne 0x5161c7
mov dword [edi], 0x96
mov eax, ecx
pop edi
pop esi
pop ebx
pop ebp
ret