Function at 0x4106b0
Capabilities:
Parse credit card information

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x4c
mov dword [esp], ecx
call fcn.004190f0
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.004191c0
mov ebx, eax
mov eax, dword [esi + 4]
cmp ebx, eax
jae 0x4107d3
lea edx, [ebx + 2]
cmp eax, edx
mov eax, dword [esi]
ja 0x4107e0
movzx eax, byte [eax + ebx]
cmp al, 0x25
je 0x4109a7
cmp al, 0x22
je 0x410a04
cmp al, 0x3c
je 0x4108a0
mov edx, dword [0x4d04f4]
test edx, edx
je 0x410719
cmp al, 0x27
je 0x410a12
mov dword [esp], 1
call fcn.0047d5d0
mov byte [eax], 0
cmp ebx, dword [esi + 4]
mov dword [esp + 0x1c], eax
jae 0x4107c7
mov ebp, eax
xor eax, eax
mov dword [esp + 0x14], ebp
lea esi, [esi]
mov ecx, dword [esi]
test al, al
movzx ebp, byte [ecx + ebx]
jne 0x410756
mov edx, ebp
cmp dl, 9
je 0x4107c7
cmp dl, 0x20
je 0x4107c7
mov edx, ebp
cmp dl, 0x2c
je 0x4107c7
cmp dl, 0x3c
je 0x410932
lea ecx, [ebp - 0x22]
cmp cl, 0x3b
ja case.0x410775.1
movzx ecx, cl
jmp dword [ecx*4 + 0x49f57c]
mov eax, ebp
add ebx, 1
movsx eax, al
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 0x18], eax
call fcn.00419100
mov ecx, dword [esi + 4]
cmp ebx, ecx
jb 0x4107b7
jmp 0x4107c3
mov dword [esp + 4], eax
add ebx, 1
mov dword [esp], edi
call fcn.00419100
mov ecx, dword [esi + 4]
cmp ecx, ebx
jbe 0x4107c3
mov eax, dword [esi]
mov edx, ebp
movsx eax, byte [eax + ebx]
cmp dl, al
jne 0x4107a1
cmp ebx, ecx
jne 0x410834
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_free
add esp, 0x4c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
cmp byte [eax + ebx + 1], 0x27
jne 0x4106eb
movsx eax, byte [eax + ebx]
mov edx, eax
and edx, 0xffffffdf
cmp dl, 0x42
je 0x4108ec
cmp dl, 0x51
je 0x4108ec
cmp dl, 0x48
je 0x4108ec
cmp dl, 0x44
jne 0x4106ef
jmp 0x4108ec
cmp al, 0x5b
sete al
movzx eax, al
add dword [esp + 0x14], eax
mov dword [esp + 0x18], 0x5d
mov eax, dword [esp + 0x18]
add ebx, 1
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00419100
cmp dword [esi + 4], ebx
jbe 0x4107c7
mov eax, dword [esp + 0x14]
movzx eax, byte [eax]
jmp 0x410740
cmp al, 0x28
sete al
movzx eax, al
mov dword [esp + 0x18], 0x29
add dword [esp + 0x14], eax
jmp 0x410834
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x1c], eax
jae 0x410960
sub dword [esp + 0x14], 1
mov ecx, dword [esp + 0x14]
mov eax, ebp
mov byte [ecx], al
movsx eax, al
mov dword [esp + 0x18], eax
jmp 0x410834
mov eax, dword [0x4d04f4]
test eax, eax
je 0x410a55
mov dword [esp], edi
lea ecx, [esi + 4]
mov edx, esi
mov eax, ebx
call fcn.00410510
add esp, 0x4c
mov ebx, eax
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
cmp al, 9
je 0x4107d3
cmp al, 0x2c
je 0x4107d3
cmp al, 0x3b
je 0x4107d3
lea edx, [eax - 0x28]
cmp dl, 1
jbe 0x4107d3
mov edx, dword [0x4d04f4]
test edx, edx
jne 0x410900
mov ebp, dword [0x4d04f0]
test ebp, ebp
je 0x41090e
mov edx, eax
and edx, 0xfffffffd
cmp dl, 0x3c
je 0x4107d3
mov dword [esp + 4], eax
add ebx, 1
mov dword [esp], edi
call fcn.00419100
mov eax, dword [esi]
movsx eax, byte [eax + ebx]
mov edx, eax
and edx, 0xfffffffd
cmp dl, 0x20
jne 0x4108c8
jmp 0x4107d3
mov edx, dword [0x4d04f4]
test edx, edx
jne 0x4107c7
mov eax, dword [0x4d04f0]
test eax, eax
jne 0x4107c7
mov dword [esp + 0x18], 0x3c
jmp 0x410834
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
add eax, 2
mov dword [esp], eax
call fcn.0047d5d0
mov ecx, dword [esp + 0x14]
mov dword [esp + 4], ecx
mov dword [esp + 0x1c], eax
lea eax, [eax + 1]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov ecx, dword [esp + 0x14]
mov dword [esp], ecx
call sub.msvcrt.dll_free
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
jmp 0x410889
mov ecx, dword [0x4d04f4]
test ecx, ecx
je 0x410719
add ebx, 1
lea eax, [esp + 0x28]
mov dword [esp + 8], esi
lea esi, [esp + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp + 0xc], eax
mov dword [esp], str.__operator_needs_absolute_expression
call dword [0x4d04e8]
mov dword [esp + 4], 0x49f575
mov dword [esp], esi
mov ebx, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
call sub.msvcrt.dll_sprintf
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.00419130
jmp 0x4107d3
mov ecx, dword [0x4d04f4]
test ecx, ecx
je 0x4108ad
cmp dword [0x4d04ec], 0
jne 0x4108ad
mov dword [esp + 4], 0x22
mov dword [esp], edi
call fcn.00419100
lea ecx, [esi + 4]
mov edx, esi
mov dword [esp], edi
mov eax, ebx
call fcn.00410510
mov dword [esp + 4], 0x22
mov dword [esp], edi
mov ebx, eax
call fcn.00419100
jmp 0x4107d3
mov ebp, dword [0x4d04f0]
test ebp, ebp
jne 0x4108ad
jmp 0x410719
mov eax, ebp
movsx eax, al
mov dword [esp + 0x18], eax
jmp 0x410834