Function at 0x47b850
Capabilities:
Parse credit card information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebx
push ebp
mov ebp, dword [eax]
push esi
push edi
mov edx, dword [ebp + 0x86d8]
mov esi, edx
mov edi, dword [ebp + 0x154]
movzx eax, byte [edx]
push eax
call fcn.0047b5e0
add esp, 4
test al, al
je 0x47b8c5
nop dword [eax + eax]
movzx eax, byte [esi + 1]
inc esi
push eax
call fcn.0047b5e0
add esp, 4
test al, al
jne 0x47b880
cmp esi, edx
je 0x47b8c5
mov ecx, esi
jbe 0x47b8a4
cmp byte [esi - 1], 0x2f
lea eax, [esi - 1]
cmove ecx, eax
push 1
push 0
lea ebx, [edi + 4]
sub ecx, edx
push ebx
push ecx
push edx
push ebp
call fcn.0047dc80
add esp, 0x18
test eax, eax
je 0x47b8cc
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov dword [edi + 4], 0
cmp byte [esi], 0x3b
jne 0x47ba96
mov al, byte [esi + 1]
inc esi
mov ecx, esi
test al, al
je 0x47bb18
cmp al, 0x3d
je 0x47b8fc
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x47b8e3
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 8
ret
cmp byte [esi], 0
je 0x47bb18
push 1
push 0
lea eax, [esp + 0x18]
push eax
mov eax, esi
sub eax, ecx
push eax
push ecx
push ebp
call fcn.0047dc80
add esp, 0x18
test eax, eax
jne 0x47baf9
movzx eax, byte [esi + 1]
inc esi
push eax
mov ecx, esi
call fcn.0047b5e0
add esp, 4
test al, al
je 0x47b952
nop dword [eax]
movzx eax, byte [esi + 1]
inc esi
push eax
call fcn.0047b5e0
add esp, 4
test al, al
jne 0x47b940
push 1
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
mov eax, esi
sub eax, ecx
push eax
push ecx
push ebp
call fcn.0047dc80
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x47bb25
push str.UIDVALIDITY
push dword [esp + 0x14]
call fcn.0046bc40
add esp, 8
test eax, eax
je 0x47b9b4
cmp dword [edi + 8], ebx
jne 0x47b9b4
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x47b9a8
mov eax, dword [esp + 0x1c]
cmp byte [eax + ecx - 1], 0x2f
jne 0x47b9a8
mov byte [eax + ecx - 1], bl
mov eax, dword [esp + 0x1c]
mov dword [edi + 8], eax
jmp 0x47ba6e
push 0x4bf12c
push dword [esp + 0x14]
call fcn.0046bc40
add esp, 8
test eax, eax
je 0x47b9f0
cmp dword [edi + 0xc], 0
jne 0x47b9f0
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x47b9e7
mov eax, dword [esp + 0x1c]
cmp byte [eax + ecx - 1], 0x2f
jne 0x47b9e7
mov byte [eax + ecx - 1], 0
mov eax, dword [esp + 0x1c]
mov dword [edi + 0xc], eax
jmp 0x47ba6e
push str.SECTION
push dword [esp + 0x14]
call fcn.0046bc40
add esp, 8
test eax, eax
je 0x47ba2c
cmp dword [edi + 0x10], 0
jne 0x47ba2c
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x47ba23
mov eax, dword [esp + 0x1c]
cmp byte [eax + ecx - 1], 0x2f
jne 0x47ba23
mov byte [eax + ecx - 1], 0
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x10], eax
jmp 0x47ba6e
push str.PARTIAL
push dword [esp + 0x14]
call fcn.0046bc40
add esp, 8
test eax, eax
je 0x47bb01
cmp dword [edi + 0x14], 0
jne 0x47bb01
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x47ba67
mov eax, dword [esp + 0x1c]
cmp byte [eax + ecx - 1], 0x2f
jne 0x47ba67
mov byte [eax + ecx - 1], 0
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x14], eax
push dword [esp + 0x10]
mov dword [esp + 0x20], 0
call dword [0x4dd364]
push dword [esp + 0x20]
call dword [0x4dd364]
add esp, 8
cmp byte [esi], 0x3b
je 0x47b8d5
cmp dword [edi + 4], 0
je 0x47baed
cmp dword [edi + 0xc], 0
jne 0x47baed
cmp byte [esi], 0x3f
jne 0x47baed
movzx eax, byte [esi + 1]
inc esi
push eax
mov ecx, esi
call fcn.0047b5e0
add esp, 4
test al, al
je 0x47bad2
nop dword [eax + eax]
movzx eax, byte [esi + 1]
inc esi
push eax
call fcn.0047b5e0
add esp, 4
test al, al
jne 0x47bac0
push 1
push 0
lea eax, [edi + 0x18]
push eax
mov eax, esi
sub eax, ecx
push eax
push ecx
push ebp
call fcn.0047dc80
add esp, 0x18
test eax, eax
jne 0x47baf9
xor eax, eax
mov ecx, 3
cmp byte [esi], al
cmovne eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push dword [esp + 0x10]
call dword [0x4dd364]
push dword [esp + 0x20]
call dword [0x4dd364]
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 8
ret
push dword [esp + 0x10]
call dword [0x4dd364]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret