Function at 0x51c270
Capabilities:
Parse credit card information

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x51c8c3
sub esp, 0x38
mov eax, dword [esp + 0x40]
test eax, eax
je 0x51c893
shr eax, 1
mov dword [esp + 8], eax
lea eax, [0x5dfee0]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00437b80
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x3c]
movzx ebp, byte [ebx]
xchg ebp, eax
cmp al, 0x22
xchg ebp, eax
jne 0x51c612
mov ebp, dword [esp + 0x40]
dec ebp
mov esi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, 1
add ebx, ebp
jmp 0x51c2ee
mov esi, ebx
mov ecx, ebp
mov ebx, eax
mov eax, edi
test esi, esi
je 0x51c5e9
mov dword [esp + 0x30], eax
movzx ebp, byte [ebx]
lea edi, [esi - 1]
mov dword [esp + 0x40], edi
xchg edi, ebx
neg ebx
xchg edi, ebx
sar edi, 0x1f
and edi, 1
lea eax, [edi + ebx]
xchg ebp, eax
cmp al, 0x22
xchg ebp, eax
je 0x51c4fc
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], ecx
xchg ebp, eax
cmp al, 0x5c
xchg ebp, eax
jne 0x51c41d
cmp esi, 1
je 0x51c3f4
movzx ebx, byte [ebx + edi]
cmp bl, 0xb
jne 0x51c3ae
lea ebp, [ecx + 1]
cmp ebp, edx
jg 0x51c362
mov edi, dword [esp + 0x30]
mov byte [edi + ecx], bl
lea ecx, [esi - 2]
mov ebx, ecx
neg ecx
sar ecx, 0x1f
and ecx, 1
add eax, ecx
jmp 0x51c2e6
mov byte [esp + 0x21], bl
mov dword [esp + 0x40], esi
lea eax, [0x5dfee0]
mov dword [esp], eax
mov ebx, dword [esp + 0x30]
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebp
call fcn.00437c50
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea ebp, [eax + 1]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
movzx ebx, byte [esp + 0x21]
mov esi, dword [esp + 0x40]
jmp 0x51c34e
cmp bl, 0xc
je 0x51c343
lea ebp, [ebx - 1]
xchg ebp, eax
cmp al, 8
xchg ebp, eax
jbe 0x51c343
lea ebp, [ebx - 0xe]
xchg ebp, eax
cmp al, 0x71
xchg ebp, eax
jbe 0x51c343
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov byte [esp + 0x54], 0
add esp, 0x38
ret
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov byte [esp + 0x54], 0
add esp, 0x38
ret
xchg ebp, eax
cmp al, 0xb
xchg ebp, eax
jne 0x51c487
lea ebx, [ecx + 1]
cmp ebx, edx
jg 0x51c441
mov esi, dword [esp + 0x30]
xchg ebp, eax
mov byte [esi + ecx], al
xchg ebp, eax
mov ebp, ebx
mov edi, esi
mov ebx, dword [esp + 0x40]
jmp 0x51c2e6
xchg ebp, eax
mov byte [esp + 0x20], al
xchg ebp, eax
lea eax, [0x5dfee0]
mov dword [esp], eax
mov ebp, dword [esp + 0x30]
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
call fcn.00437c50
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea ebx, [eax + 1]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
movzx ebp, byte [esp + 0x20]
jmp 0x51c42f
xchg ebp, eax
cmp al, 0xc
xchg ebp, eax
je 0x51c424
xchg ebp, eax
cmp al, 0x20
xchg ebp, eax
je 0x51c424
xchg ebp, eax
cmp al, 0x21
xchg ebp, eax
je 0x51c424
xchg ebp, eax
cmp al, 0x7f
xchg ebp, eax
je 0x51c424
lea ebx, [ebp - 1]
cmp bl, 7
jbe 0x51c424
lea ebx, [ebp - 0xe]
cmp bl, 0x11
jbe 0x51c424
lea ebx, [ebp - 0x23]
cmp bl, 0x38
jbe 0x51c424
lea ebx, [ebp - 0x5d]
cmp bl, 0x21
jbe 0x51c424
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov byte [esp + 0x54], 0
add esp, 0x38
ret
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x30]
test ebx, ebx
jne 0x51c531
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov byte [esp + 0x54], 0
add esp, 0x38
ret
movzx esi, byte [eax]
xchg esi, eax
cmp al, 0x40
xchg esi, eax
jne 0x51c508
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], ebp
lea ecx, [ebx - 1]
mov dword [esp + 0x40], ecx
mov edx, ecx
neg ecx
sar ecx, 0x1f
and ecx, 1
add eax, ecx
mov dword [esp + 0x3c], eax
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0051c8d0
movzx eax, byte [esp + 0x14]
test al, al
je 0x51c5c0
mov dword [esp], 0
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], eax
call fcn.0043af60
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x50], eax
mov byte [esp + 0x54], 1
add esp, 0x38
ret
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov byte [esp + 0x54], 0
add esp, 0x38
ret
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov byte [esp + 0x54], 0
add esp, 0x38
ret
mov ebp, dword [esp + 0x40]
jmp 0x51c636
xchg esi, ebx
mov byte [eax + ecx], bl
xchg esi, ebx
lea esi, [edi - 1]
mov edi, esi
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and esi, 1
add ebx, esi
mov ecx, ebp
mov ebp, edi
mov dword [esp + 0x24], ecx
test ebp, ebp
jle 0x51c7bd
movzx esi, byte [ebx]
xchg esi, eax
cmp al, 0x5c
xchg esi, eax
jne 0x51c6f4
lea esi, [ebp - 1]
mov edi, esi
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and esi, 1
add ebx, esi
cmp ebp, 1
je 0x51c6cb
test edi, edi
jbe 0x51c8bc
lea ebp, [ecx + 1]
movzx esi, byte [ebx]
cmp ebp, edx
jle 0x51c618
mov dword [esp + 0x40], edi
xchg esi, eax
mov byte [esp + 0x21], al
xchg esi, eax
mov dword [esp + 0x3c], ebx
lea ebx, [0x5dfee0]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebp
call fcn.00437c50
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea ebp, [ecx + 1]
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x3c]
movzx esi, byte [esp + 0x21]
mov edi, dword [esp + 0x40]
jmp 0x51c618
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov byte [esp + 0x54], 0
add esp, 0x38
ret
lea edi, [esi - 0x30]
xchg edi, eax
cmp al, 9
xchg edi, eax
ja 0x51c705
mov edi, ebp
jmp 0x51c668
lea edi, [esi - 0x61]
xchg edi, eax
cmp al, 0x19
xchg edi, eax
jbe 0x51c6fe
lea edi, [esi - 0x41]
xchg edi, eax
cmp al, 0x19
xchg edi, eax
jbe 0x51c6fe
xchg esi, eax
cmp al, 0x21
xchg esi, eax
je 0x51c6fe
xchg esi, eax
cmp al, 0x23
xchg esi, eax
je 0x51c6fe
xchg esi, eax
cmp al, 0x24
xchg esi, eax
je 0x51c6fe
xchg esi, eax
cmp al, 0x25
xchg esi, eax
je 0x51c6fe
xchg esi, eax
cmp al, 0x26
xchg esi, eax
je 0x51c6fe
xchg esi, eax
cmp al, 0x27
xchg esi, eax
je 0x51c6fe
xchg esi, eax
cmp al, 0x2a
xchg esi, eax
je 0x51c6fe
xchg esi, eax
cmp al, 0x2b
xchg esi, eax
je 0x51c6fe
xchg esi, eax
cmp al, 0x2d
xchg esi, eax
je 0x51c6fe
xchg esi, eax
cmp al, 0x2f
xchg esi, eax
je 0x51c6fe
xchg esi, eax
cmp al, 0x3d
xchg esi, eax
je 0x51c6fe
xchg esi, eax
cmp al, 0x3f
xchg esi, eax
je 0x51c6fe
xchg esi, eax
cmp al, 0x5e
xchg esi, eax
je 0x51c6fe
xchg esi, eax
cmp al, 0x5f
xchg esi, eax
je 0x51c6fe
xchg esi, eax
cmp al, 0x60
xchg esi, eax
je 0x51c6fe
xchg esi, eax
cmp al, 0x7b
xchg esi, eax
je 0x51c6fe
xchg esi, eax
cmp al, 0x7c
xchg esi, eax
je 0x51c6fe
xchg esi, eax
cmp al, 0x7d
xchg esi, eax
je 0x51c6fe
xchg esi, eax
cmp al, 0x7e
xchg esi, eax
je 0x51c6fe
xchg esi, eax
cmp al, 0x2e
xchg esi, eax
je 0x51c6fe
test ecx, ecx
je 0x51c86a
movzx esi, word [0x65de7a]
mov word [esp + 0x22], si
movzx esi, byte [eax]
xchg esi, eax
cmp al, 0x2e
xchg esi, eax
jne 0x51c804
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov byte [esp + 0x54], 0
add esp, 0x38
ret
movzx esi, byte [ecx + eax - 1]
xchg esi, eax
cmp al, 0x2e
xchg esi, eax
je 0x51c7db
mov dword [esp + 0x28], edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], eax
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
lea ebx, [esp + 0x22]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], 2
call fcn.004cad10
movzx eax, byte [esp + 0x18]
test al, al
jne 0x51c7db
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x30]
jmp 0x51c504
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov byte [esp + 0x54], 0
add esp, 0x38
ret
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov byte [esp + 0x54], 0
add esp, 0x38
ret
call fcn.004258a0
ud2
call fcn.00449f20
jmp fcn.0051c270