Function at 0x512520
Capabilities:
Parse credit card information

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
xor cl, cl
push edi
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x5127db
cmp eax, 0x7c
je 0x5127db
cmp eax, 0x29
jne 0x512560
cmp dword [esi + 0x10], 0
jne 0x5127db
test dword [esi + 0x50], 0x10000000
je 0x5127eb
jmp 0x5126e4
cmp eax, 0x2e
jne 0x512574
push 5
lea ecx, [esi + 0x24]
call fcn.00512810
jmp 0x5126f1
cmp eax, 0x5c
jne 0x5125d0
mov ecx, esi
call fcn.005124c0
test byte [esi + 0x50], 0x80
je 0x5125c4
mov al, byte [esi + 0x48]
cmp al, 0x62
jne 0x5125a3
push 4
lea ecx, [esi + 0x24]
call fcn.00512810
mov ecx, esi
call fcn.005124c0
jmp 0x5127cd
cmp al, 0x42
jne 0x5125c4
push 4
lea ecx, [esi + 0x24]
call fcn.00512810
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.005124c0
jmp 0x5127cd
mov ecx, esi
call fcn.00513190
jmp 0x5126f8
cmp eax, 0x5b
jne 0x512631
mov ecx, esi
call fcn.005124c0
lea ecx, [esi + 0x24]
call fcn.005149a0
mov eax, dword [esi + 0x4c]
cmp eax, 0x5e
jne 0x5125fd
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.005124c0
mov eax, dword [esi + 0x4c]
test dword [esi + 0x50], 0x20000000
je 0x51261b
cmp eax, 0x5d
jne 0x51261b
push eax
lea ecx, [esi + 0x24]
call fcn.00514a30
mov ecx, esi
call fcn.005124c0
mov ecx, esi
call fcn.00514450
cmp dword [esi + 0x4c], 0x5d
jne 0x5127f2
jmp 0x5126f1
cmp eax, 0x28
jne 0x512664
mov ecx, esi
call fcn.005124c0
mov ecx, esi
call fcn.00513320
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x5127eb
mov ecx, esi
call fcn.005124c0
test bl, bl
je 0x5127cd
jmp 0x5126f8
cmp eax, 0x5e
jne 0x51267f
push 2
lea ecx, [esi + 0x24]
call fcn.00512810
mov ecx, esi
call fcn.005124c0
jmp 0x5127cd
cmp eax, 0x24
jne 0x51269a
push 3
lea ecx, [esi + 0x24]
call fcn.00512810
mov ecx, esi
call fcn.005124c0
jmp 0x5127cd
cmp eax, 0x2a
je 0x5127e4
cmp eax, 0x2b
je 0x5127e4
cmp eax, 0x3f
je 0x5127e4
cmp eax, 0x7b
je 0x5127e4
cmp eax, 0x7d
jne 0x5126d2
test dword [esi + 0x50], 0x10000000
je 0x5127f9
jmp 0x5126e4
cmp eax, 0x5d
jne 0x5126e4
test dword [esi + 0x50], 0x10000000
je 0x5127f2
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.00513430
mov ecx, esi
call fcn.005124c0
mov eax, dword [esi + 0x4c]
xor ebx, ebx
or edi, 0xffffffff
cmp eax, 0x2a
je 0x51278f
cmp eax, 0x2b
jne 0x512713
lea ebx, [edi + 2]
jmp 0x51278f
cmp eax, 0x3f
jne 0x51271d
lea edi, [eax - 0x3e]
jmp 0x51278f
cmp eax, 0x7b
jne 0x5127cd
mov ecx, esi
call fcn.005124c0
push 7
push SysReAllocString
push 0xa
mov ecx, esi
call fcn.005154a0
cmp eax, 0x7fffffff
je 0x512800
cmp dword [esi + 0x4c], 0x2c
mov ebx, dword [esi + 0x44]
je 0x512755
mov edi, ebx
jmp 0x512780
mov ecx, esi
call fcn.005124c0
cmp dword [esi + 0x4c], 0x7d
je 0x512786
push 7
push SysReAllocString
push 0xa
mov ecx, esi
call fcn.005154a0
cmp eax, 0x7fffffff
je 0x512800
mov edi, dword [esi + 0x44]
cmp dword [esi + 0x4c], 0x7d
jne 0x512800
cmp edi, 0xffffffff
je 0x51278f
cmp edi, ebx
jl 0x512800
mov eax, dword [esi + 0x28]
mov ecx, esi
or dword [eax + 8], 4
call fcn.005124c0
test dword [esi + 0x50], 0x400
je 0x5127ba
cmp dword [esi + 0x4c], 0x3f
jne 0x5127ba
mov ecx, esi
mov byte [esp + 0x10], 0
call fcn.005124c0
jmp 0x5127bf
mov byte [esp + 0x10], 1
push dword [esp + 0x10]
lea ecx, [esi + 0x24]
push edi
push ebx
call fcn.00514aa0
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x512536
pop edi
pop esi
mov al, cl
pop ebx
add esp, 8
ret
push 0xa
call fcn.005114e0
push 5
call fcn.005114e0
push 4
call fcn.005114e0
push 6
call fcn.005114e0
push 7
call fcn.005114e0
int3