Function at 0x4c5113
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 8]
and dword [ebp - 0x14], 0
push ebx
mov ebx, edx
mov dword [ebp - 0x34], ecx
mov eax, dword [eax]
mov ecx, ebx
push esi
push edi
mov dword [ebp - 0xc], eax
call fcn.0045c53b
mov ecx, dword [ebp - 0xc]
mov esi, eax
test cl, 0x40
jne 0x4c514b
cmp byte [0x40120e], 0
je 0x4c54cb
cmp esi, 5
jl 0x4c54cb
cmp dword [ebx], 0x656c6966
jne 0x4c54cb
cmp byte [ebx + 4], 0x3a
jne 0x4c54cb
and dword [ebp - 8], 0
lea eax, [esi + 8]
or ecx, 0x40
cdq
mov dword [ebp - 0xc], ecx
xor ecx, ecx
cmp byte [ecx + ebx], 0x26
jne 0x4c5189
xor edi, edi
inc edi
and dword [ebp - 0x1c], 0
jmp 0x4c519a
xorps xmm0, xmm0
movlpd qword [ebp - 0x30], xmm0
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0x30]
add eax, edi
adc edx, dword [ebp - 0x1c]
inc ecx
cmp ecx, esi
jl 0x4c517a
push edx
push eax
call fcn.004593ff
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4c54de
and dword [edi], 0
add edi, 4
cmp byte [ebx + 5], 0x2f
push 5
pop esi
jne 0x4c5226
cmp byte [ebx + 6], 0x2f
jne 0x4c5226
lea ecx, [ebx + 7]
mov al, byte [ecx]
mov dword [ebp - 0x2c], ecx
push 7
pop esi
test al, al
je 0x4c5226
cmp al, 0x2f
je 0x4c51e7
inc esi
mov al, byte [esi + ebx]
test al, al
jne 0x4c51db
cmp esi, 7
je 0x4c5226
cmp esi, 0x10
jne 0x4c5208
push 9
push ecx
push 0x4331c4
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
je 0x4c5226
mov ecx, dword [ebp - 0x2c]
push ecx
lea eax, [esi - 7]
push eax
push 0x4331d0
mov dword [ebp - 0x14], 1
call fcn.0045b7fe
add esp, 0xc
jmp 0x4c5529
mov cl, byte [esi + ebx]
xor edx, edx
mov dword [ebp - 0x10], edx
test cl, cl
je 0x4c536c
cmp cl, 0x23
je 0x4c535d
inc esi
cmp cl, 0x25
jne 0x4c52e2
movzx eax, byte [esi + ebx]
test byte [eax + 0x425178], 8
je 0x4c52e2
movzx eax, byte [esi + ebx + 1]
test byte [eax + 0x425178], 8
je 0x4c52e2
mov dl, byte [esi + ebx]
mov cl, byte [esi + ebx + 1]
mov al, dl
sar al, 6
add esi, 2
and al, 1
movzx eax, al
imul eax, eax, 7
sub dl, al
mov al, cl
sar al, 6
and edx, 0xf
and al, 1
shl edx, 4
movzx eax, al
imul eax, eax, 7
sub cl, al
and ecx, 0xf
add ecx, edx
mov edx, dword [ebp - 0x10]
jne 0x4c5348
jmp 0x4c52d9
cmp al, 0x23
je 0x4c5352
test edx, edx
jne 0x4c52ba
cmp al, 0x3f
je 0x4c5352
cmp edx, 1
jne 0x4c52cf
cmp al, 0x3d
je 0x4c5352
cmp al, 0x26
je 0x4c5352
cmp edx, 2
jne 0x4c52d8
cmp al, 0x26
je 0x4c5352
inc esi
mov al, byte [esi + ebx]
test al, al
jne 0x4c52a6
jmp 0x4c5352
cmp edx, 1
jne 0x4c532d
cmp cl, 0x26
je 0x4c52f1
cmp cl, 0x3d
jne 0x4c5348
mov eax, dword [ebp - 8]
cmp byte [edi + eax - 1], 0
je 0x4c531a
cmp cl, 0x26
jne 0x4c5323
mov ecx, eax
mov byte [edi + ecx], 0
inc ecx
mov dword [ebp - 8], ecx
mov eax, ecx
jmp 0x4c5329
cmp al, 0x23
je 0x4c5352
cmp byte [esi + ebx - 1], 0x26
je 0x4c5352
inc esi
mov al, byte [esi + ebx]
test al, al
jne 0x4c530e
jmp 0x4c5352
push 2
pop edx
mov dword [ebp - 0x10], edx
xor cl, cl
jmp 0x4c534b
test edx, edx
jne 0x4c5336
cmp cl, 0x3f
je 0x4c5340
cmp edx, 2
jne 0x4c5348
cmp cl, 0x26
jne 0x4c5348
xor edx, edx
xor cl, cl
inc edx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov byte [edi + eax], cl
inc eax
mov dword [ebp - 8], eax
mov cl, byte [esi + ebx]
test cl, cl
jne 0x4c5236
mov eax, dword [ebp - 8]
cmp edx, 1
jne 0x4c536f
mov byte [edi + eax], 0
inc eax
jmp 0x4c536f
mov eax, dword [ebp - 8]
and dword [edi + eax], 0
mov ecx, edi
call fcn.0045c53b
lea esi, [eax + 1]
add esi, edi
jmp 0x4c54ab
mov ecx, esi
call fcn.0045c53b
mov ebx, eax
lea eax, [esi + 1]
add eax, ebx
mov ecx, eax
mov dword [ebp - 8], eax
call fcn.0045c53b
mov dword [ebp - 0x2c], eax
cmp ebx, 3
jne 0x4c53c9
mov ebx, dword [ebp - 8]
mov ecx, 0x6676
cmp cx, word [esi]
jne 0x4c54a6
push 0x73
pop ecx
cmp cl, byte [esi + 2]
jne 0x4c54a6
mov dword [ebp - 0x34], ebx
jmp 0x4c54a6
cmp ebx, 5
jne 0x4c53fd
mov ecx, 0x68636163
cmp ecx, dword [esi]
jne 0x4c54a3
push 0x65
pop ecx
cmp cl, byte [esi + 4]
jne 0x4c54a3
mov ecx, 0x60000
mov dword [ebp - 0x1c], 0x4331ec
mov eax, 0x402c48
mov dword [ebp - 0x24], ecx
jmp 0x4c542b
cmp ebx, 4
jne 0x4c54a3
cmp dword [esi], 0x65646f6d
jne 0x4c54a3
mov edx, dword [ebp - 0xc]
mov ecx, 0x87
and edx, ecx
mov dword [ebp - 0x1c], 0x433210
mov eax, 0x4028f8
mov dword [ebp - 0x24], edx
mov ebx, dword [ebp - 8]
mov esi, ecx
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov eax, dword [eax]
jmp 0x4c5462
mov ecx, eax
call fcn.0045c53b
mov ecx, dword [ebp - 0x2c]
cmp ecx, eax
jne 0x4c5458
push ecx
push dword [ebp - 0x20]
push ebx
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
je 0x4c547a
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
inc ecx
mov eax, dword [eax + ecx*8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], ecx
test eax, eax
jne 0x4c5439
push ebx
push dword [ebp - 0x1c]
push 0x433218
jmp 0x4c5212
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [eax + ecx*8 + 4]
test ecx, ecx
je 0x4c546c
mov eax, ecx
and eax, 0xffffff7f
cmp eax, dword [ebp - 0x24]
jg 0x4c54b6
mov eax, dword [ebp - 0x2c]
not esi
and esi, dword [ebp - 0xc]
or esi, ecx
mov dword [ebp - 0xc], esi
jmp 0x4c54a6
mov ebx, dword [ebp - 8]
lea esi, [ebx + 1]
add esi, eax
cmp byte [esi], 0
jne 0x4c5384
jmp 0x4c5500
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x14], 3
push 0x43322c
jmp 0x4c5219
lea eax, [esi + 8]
cdq
push edx
push eax
call fcn.004593ff
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4c54e3
push 7
pop eax
jmp 0x4c5547
and dword [edi], 0
add edi, 4
test esi, esi
je 0x4c54f8
push esi
push ebx
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
and dword [edi + esi], 0
and dword [ebp - 0xc], 0xffffffbf
mov esi, dword [ebp - 0x34]
push esi
call fcn.00458b70
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
test ecx, ecx
jne 0x4c5537
push esi
push 0x433244
mov dword [ebp - 0x14], 1
call fcn.0045b7fe
pop ecx
pop ecx
mov ecx, dword [ebp + 0x14]
push edi
mov dword [ecx], eax
call fcn.004c6524
pop ecx
xor edi, edi
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
mov dword [ecx], edi
pop edi
pop esi
pop ebx
leave
ret