Function at 0x1000f55d
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x1000f57a
push 0x80004005
call fcn.1000fc6d
test esi, esi
je 0x1000f570
cmp edi, esi
je 0x1000f570
mov bl, byte [edi]
xor edx, edx
and dword [ebp - 0x1c], edx
and dword [ebp - 0x14], edx
test bl, bl
lea eax, [esi + 0x823]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x10], 0x20
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], eax
je 0x1000f7cf
inc edi
cmp edx, 0x823
mov dword [ebp + 8], edi
jne 0x1000f5c1
and dword [ebp - 0xc], 0
cmp bl, 0x3a
jne 0x1000f638
test byte [ebp - 0x10], 0x80
je 0x1000f68a
cmp dword [ebp - 0x14], 0
jne 0x1000f68a
cmp dword [ebp - 0xc], 0
je 0x1000f62f
mov eax, esi
sub eax, edx
cmp eax, dword [ebp - 0x20]
mov byte [esi], 0
jb 0x1000f570
cmp eax, dword [ebp - 0x18]
ja 0x1000f570
mov ecx, dword [ebp - 0x18]
sub ecx, eax
inc ecx
push ecx
push eax
call fcn.1001eab9
push eax
call fcn.1000886d
add esp, 0xc
cmp dword [ebp - 8], 4
jne 0x1000f62f
push 4
lea eax, [esi - 4]
push eax
push 0x1003f7bc
call fcn.1001e3ee
add esp, 0xc
test eax, eax
jne 0x1000f62f
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0x14], eax
jmp 0x1000f68a
cmp bl, 0x25
jne 0x1000f676
test byte [ebp - 0x10], 4
je 0x1000f68a
mov al, byte [edi]
test al, al
je 0x1000f7c1
inc edi
mov cl, byte [edi]
test cl, cl
mov byte [ebp - 1], cl
je 0x1000f7c1
inc edi
mov dword [ebp + 8], edi
call fcn.1000eddf
mov bx, ax
mov al, byte [ebp - 1]
shl bl, 4
call fcn.1000eddf
add bl, al
jmp 0x1000f68a
cmp bl, 0x3f
je 0x1000f680
cmp bl, 0x23
jne 0x1000f68a
test byte [ebp - 0x10], 0x20
je 0x1000f68a
or dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x10]
test al, al
jns 0x1000f6f4
test al, 2
jne 0x1000f6f4
cmp bl, 0x5c
jne 0x1000f6bb
xor ecx, ecx
cmp dword [ebp - 0x14], ecx
jne 0x1000f6a7
test ax, 0x100
je 0x1000f6f4
cmp dword [ebp - 0xc], ecx
je 0x1000f6f4
cmp dword [ebp - 0x1c], ecx
je 0x1000f6b7
cmp dword [ebp - 8], 7
jae 0x1000f6f4
mov bl, 0x2f
jmp 0x1000f6f4
cmp bl, 0x2e
jne 0x1000f6f4
mov ecx, dword [ebp - 8]
test ecx, ecx
jbe 0x1000f6f4
test al, 8
jne 0x1000f6f4
push dword [ebp - 0x14]
lea edx, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [esi - 1]
push edx
call fcn.1000f7f3
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
add esp, 0x14
test eax, eax
jne 0x1000f7b4
movzx ecx, bl
cmp ecx, 0x40
jg 0x1000f71c
cmp ecx, 0x3b
jge 0x1000f73d
cmp ecx, 0x20
je 0x1000f73d
cmp ecx, 0x21
jle 0x1000f733
cmp ecx, 0x26
jle 0x1000f73d
cmp ecx, 0x2a
jle 0x1000f733
cmp ecx, 0x2c
jle 0x1000f73d
jmp 0x1000f733
cmp ecx, 0x5b
jl 0x1000f733
cmp ecx, 0x5e
jle 0x1000f73d
cmp ecx, 0x60
je 0x1000f73d
lea eax, [ecx - 0x7b]
cmp eax, 2
jbe 0x1000f73d
cmp bl, 0x20
jb 0x1000f73d
cmp bl, 0x7e
jbe 0x1000f7a5
mov al, byte [ebp - 0x10]
test al, 2
jne 0x1000f7a5
test al, 0x10
je 0x1000f74d
cmp bl, 0x20
jne 0x1000f7a5
test al, 8
je 0x1000f756
cmp bl, 0x2e
je 0x1000f7a5
test al, 0x40
jne 0x1000f75f
cmp bl, 0x25
je 0x1000f7a5
cmp dword [ebp - 8], 0x820
jb 0x1000f76c
and dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
je 0x1000f79f
cmp bl, 0x10
mov byte [esi], 0x25
lea eax, [esi + 1]
jae 0x1000f781
mov byte [eax], 0x30
inc eax
mov edx, dword [ebp - 0x18]
push 0x10
sub edx, eax
push edx
push eax
push ecx
call fcn.1001e5d1
push eax
call fcn.1000886d
add esp, 0x14
add esi, 3
mov dword [ebp + 0xc], esi
add dword [ebp - 8], 2
jmp 0x1000f7b1
cmp dword [ebp - 0xc], 0
je 0x1000f7b1
mov byte [esi], bl
inc esi
mov dword [ebp + 0xc], esi
inc dword [ebp - 8]
mov bl, byte [edi]
test bl, bl
mov edx, dword [ebp - 8]
jne 0x1000f5b1
cmp dword [ebp - 0xc], 0
je 0x1000f7d2
cmp edx, 0x823
jae 0x1000f7d2
mov byte [esi], 0
mov eax, dword [ebp + 0x10]
test eax, eax
pop edi
pop esi
pop ebx
je 0x1000f7e1
lea ecx, [edx + 1]
mov dword [eax], ecx
inc edx
cmp edx, 0x823
jbe 0x1000f7ee
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
leave
ret