Function at 0x1002ae40
Capabilities:
Parse credit card information

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [eax]
mov ecx, dword [edi + 0x8718]
mov al, byte [ecx]
mov ebp, dword [edi + 0x128]
mov dword [esp + 0x1c], edi
mov esi, ecx
call fcn.1002ad00
test eax, eax
je 0x1002aea8
mov al, byte [esi + 1]
inc esi
call fcn.1002ad00
test eax, eax
jne 0x1002ae66
cmp esi, ecx
je 0x1002aea8
mov eax, esi
jbe 0x1002ae86
cmp byte [esi - 1], 0x2f
lea edx, [esi - 1]
jne 0x1002ae86
mov eax, edx
push 1
xor ebx, ebx
push ebx
lea edx, [ebp + 4]
push edx
sub eax, ecx
push eax
push ecx
push edi
call fcn.10016fd0
add esp, 0x18
cmp eax, ebx
je 0x1002aead
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
xor ebx, ebx
mov dword [ebp + 4], ebx
cmp byte [esi], 0x3b
jne 0x1002b0b8
mov al, byte [esi + 1]
inc esi
mov ecx, esi
cmp al, bl
je 0x1002b0ab
cmp al, 0x3d
je 0x1002aedd
mov al, byte [esi + 1]
inc esi
cmp al, bl
jne 0x1002aec4
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x10
ret
cmp byte [esi], bl
je 0x1002b0ab
push 1
push ebx
lea edx, [esp + 0x1c]
push edx
mov eax, esi
sub eax, ecx
push eax
push ecx
push edi
call fcn.10016fd0
add esp, 0x18
cmp eax, ebx
jne 0x1002b107
mov al, byte [esi + 1]
inc esi
mov ecx, esi
call fcn.1002ad00
test eax, eax
je 0x1002af20
mov al, byte [esi + 1]
inc esi
call fcn.1002ad00
test eax, eax
jne 0x1002af13
push 1
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
mov edx, esi
sub edx, ecx
push edx
push ecx
push edi
call fcn.10016fd0
mov edi, eax
mov eax, dword [esp + 0x2c]
add esp, 0x18
cmp edi, ebx
jne 0x1002b06b
push str.UIDVALIDITY
push eax
call fcn.100289b0
add esp, 8
test eax, eax
je 0x1002af83
cmp dword [ebp + 8], ebx
jne 0x1002af83
mov eax, dword [esp + 0x18]
cmp eax, ebx
jbe 0x1002af77
mov ecx, dword [esp + 0x10]
cmp byte [ecx + eax - 1], 0x2f
jne 0x1002af77
mov byte [ecx + eax - 1], bl
mov ecx, dword [esp + 0x10]
mov dword [ebp + 8], ecx
jmp 0x1002b032
mov edx, dword [esp + 0x14]
push 0x10040698
push edx
call fcn.100289b0
add esp, 8
test eax, eax
je 0x1002afbe
cmp dword [ebp + 0xc], ebx
jne 0x1002afbe
mov eax, dword [esp + 0x18]
cmp eax, ebx
jbe 0x1002afb5
mov ecx, dword [esp + 0x10]
cmp byte [ecx + eax - 1], 0x2f
jne 0x1002afb5
mov byte [ecx + eax - 1], bl
mov eax, dword [esp + 0x10]
mov dword [ebp + 0xc], eax
jmp 0x1002b032
mov ecx, dword [esp + 0x14]
push str.SECTION
push ecx
call fcn.100289b0
add esp, 8
test eax, eax
je 0x1002aff9
cmp dword [ebp + 0x10], ebx
jne 0x1002aff9
mov eax, dword [esp + 0x18]
cmp eax, ebx
jbe 0x1002aff0
mov ecx, dword [esp + 0x10]
cmp byte [ecx + eax - 1], 0x2f
jne 0x1002aff0
mov byte [ecx + eax - 1], bl
mov edx, dword [esp + 0x10]
mov dword [ebp + 0x10], edx
jmp 0x1002b032
mov eax, dword [esp + 0x14]
push str.PARTIAL
push eax
call fcn.100289b0
add esp, 8
test eax, eax
je 0x1002b083
cmp dword [ebp + 0x14], ebx
jne 0x1002b083
mov eax, dword [esp + 0x18]
cmp eax, ebx
jbe 0x1002b02b
mov ecx, dword [esp + 0x10]
cmp byte [ecx + eax - 1], 0x2f
jne 0x1002b02b
mov byte [ecx + eax - 1], bl
mov ecx, dword [esp + 0x10]
mov dword [ebp + 0x14], ecx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
cmp eax, ebx
je 0x1002b062
push eax
call dword [0x1004403c]
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x14], ebx
cmp eax, ebx
je 0x1002b062
push eax
call dword [0x1004403c]
add esp, 4
mov dword [esp + 0x10], ebx
mov edi, dword [esp + 0x1c]
jmp 0x1002aead
cmp eax, ebx
je 0x1002b079
push eax
call dword [0x1004403c]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x1002b099
push eax
call dword [0x1004403c]
add esp, 4
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x1002b0ab
push eax
call dword [0x1004403c]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x10
ret
cmp dword [ebp + 4], ebx
je 0x1002b0fd
cmp dword [ebp + 0xc], ebx
jne 0x1002b0fd
cmp byte [esi], 0x3f
jne 0x1002b0fd
mov al, byte [esi + 1]
inc esi
mov ecx, esi
call fcn.1002ad00
test eax, eax
je 0x1002b0e3
mov al, byte [esi + 1]
inc esi
call fcn.1002ad00
test eax, eax
jne 0x1002b0d6
push 1
push ebx
add ebp, 0x18
push ebp
mov edx, esi
sub edx, ecx
push edx
push ecx
push edi
call fcn.10016fd0
add esp, 0x18
cmp eax, ebx
jne 0x1002b107
movsx eax, byte [esi]
neg eax
sbb eax, eax
and eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret