Function at 0x520ae0
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x18
test edx, edx
je 0x520de2
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x520de2
cmp edx, esi
je 0x520de2
mov bl, byte [edx]
xor edi, edi
xor ecx, ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov eax, 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], esi
test bl, bl
je 0x520dcf
mov dword [ebp - 0x18], eax
nop dword [eax]
inc edx
mov dword [ebp - 4], 0
cmp edi, dword [ebp + 0x14]
mov dword [ebp + 8], edx
cmove eax, dword [ebp - 4]
mov dword [ebp - 4], eax
cmp bl, 0x3a
jne 0x520c00
test byte [ebp + 0x18], 0x80
je 0x520bb8
test ecx, ecx
jne 0x520bb8
test eax, eax
je 0x520bb2
mov byte [esi], cl
mov ecx, esi
sub ecx, edi
cmp ecx, dword [ebp - 0x10]
jb 0x520de2
mov eax, dword [ebp + 0x14]
add eax, dword [ebp - 0x10]
mov esi, dword [ebp + 0xc]
cmp ecx, eax
ja 0x520de2
sub eax, ecx
inc eax
push eax
push ecx
call fcn.005c6d80
push eax
call fcn.00408ee0
add esp, 0xc
cmp edi, 4
jne 0x520bb2
push edi
lea eax, [esi - 4]
push eax
push str.file
call fcn.005c6dd0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
test eax, eax
cmove ecx, dword [ebp - 0x18]
mov dword [ebp - 0xc], ecx
lea ecx, [edi + 1]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0x18]
and al, 0x82
cmp al, 0x80
jne 0x520ce8
cmp bl, 0x5c
jne 0x520caf
test ecx, ecx
jne 0x520bdf
test dword [ebp + 0x18], 0x100
je 0x520ce8
mov edx, dword [ebp - 4]
test edx, edx
je 0x520ceb
cmp dword [ebp - 0xc], 0
je 0x520bf9
cmp edi, 7
jae 0x520ceb
mov bl, 0x2f
jmp 0x520ceb
cmp bl, 0x25
jne 0x520c8b
mov eax, dword [ebp + 0x18]
test al, 4
je 0x520bbb
mov cl, byte [edx]
test cl, cl
je 0x520dcc
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x520c2a
movzx eax, cl
sub ax, 0x30
jmp 0x520c4c
lea eax, [ecx - 0x41]
cmp al, 5
ja 0x520c3a
movzx eax, cl
sub ax, 0x37
jmp 0x520c4c
lea eax, [ecx - 0x61]
cmp al, 5
ja 0x520daa
movzx eax, cl
sub ax, 0x57
movzx ebx, ax
test bx, bx
js 0x520daa
mov al, byte [edx + 1]
test al, al
je 0x520dcc
add edx, 2
push eax
mov dword [ebp + 8], edx
call fcn.005211e0
movzx eax, ax
add esp, 4
test ax, ax
js 0x520da3
mov ecx, dword [ebp - 0x14]
shl bl, 4
add bl, al
jmp 0x520bb8
cmp bl, 0x3f
je 0x520c99
cmp bl, 0x23
jne 0x520bb8
mov eax, dword [ebp + 0x18]
test al, 0x20
je 0x520bbb
or eax, 2
mov dword [ebp + 0x18], eax
jmp 0x520bbb
cmp bl, 0x2e
jne 0x520ce8
test edi, edi
je 0x520ce8
mov eax, dword [ebp + 0x18]
test al, 8
jne 0x520ce8
push ecx
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push edi
lea eax, [esi - 1]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.005210e0
mov esi, dword [ebp + 0xc]
add esp, 0x1c
mov edi, dword [ebp - 8]
test eax, eax
jne 0x520d8f
mov edx, dword [ebp - 4]
movzx eax, bl
mov dword [ebp - 8], eax
add eax, 0xffffffe0
cmp eax, 0x5d
ja case.0x520d00.33
movzx eax, byte [eax + 0x520df4]
jmp dword [eax*4 + 0x520dec]
lea eax, [ebx - 0x20]
cmp al, 0x5e
jbe 0x520d81
mov eax, dword [ebp + 0x18]
test al, 2
jne 0x520d81
test al, 0x10
je 0x520d1e
cmp bl, 0x20
jne 0x520d81
test al, 8
je 0x520d27
cmp bl, 0x2e
je 0x520d81
test al, 0x40
jne 0x520d30
cmp bl, 0x25
je 0x520d81
mov eax, dword [ebp + 0x14]
add eax, 0xfffffffd
cmp edi, eax
jb 0x520d44
xor edx, edx
add edi, 2
mov dword [ebp - 4], edx
jmp 0x520d8b
test edx, edx
je 0x520d7c
mov byte [esi], 0x25
lea ecx, [esi + 1]
cmp bl, 0x10
jae 0x520d57
mov byte [ecx], 0x30
inc ecx
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp - 0x10]
add eax, ebx
push 0x10
sub eax, ecx
push eax
push ecx
push dword [ebp - 8]
call fcn.005bd07d
push eax
call fcn.00408ee0
add esp, 0x14
add esi, 3
mov dword [ebp + 0xc], esi
add edi, 2
jmp 0x520d8b
test edx, edx
je 0x520d8b
mov byte [esi], bl
inc esi
mov dword [ebp + 0xc], esi
inc edi
mov dword [ebp - 8], edi
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov bl, byte [edx]
test bl, bl
je 0x520dcf
mov ecx, dword [ebp - 0x14]
jmp 0x520b30
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x520dcf
xor edx, edx
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x520dbb
lea eax, [edi + 1]
mov dword [ecx], eax
lea ecx, [edi + 1]
xor eax, eax
pop edi
cmp ecx, ebx
pop esi
cmovbe eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
test eax, eax
je 0x520dac
mov ebx, dword [ebp + 0x14]
cmp edi, ebx
jae 0x520daf
mov byte [esi], 0
jmp 0x520daf
push 0x80004005
call fcn.00408eb0
push cs
or eax, 218562642
push edx
add byte [eax], al
add dword [eax], eax
add byte [eax], al
add byte [eax], al
add dword [ecx], eax
add dword [ecx], eax
add byte [eax], al
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add byte [eax], al
add ah, cl
int3