Function at 0x47fd30
Capabilities:
Parse credit card information

Disassembly:
sub esp, 0xc
mov eax, dword [0x5b35fc]
push ebx
mov ebx, dword [esp + 0x20]
cdq
push ebp
sub eax, edx
sar eax, 1
push esi
mov esi, ecx
mov ecx, 0
sets cl
push edi
mov dword [esp + 0x10], esi
dec ecx
and ecx, eax
movzx eax, word [ebx]
mov ebp, ecx
mov dword [esp + 0x14], ebp
cmp ax, 0x23
jne 0x47fe36
mov ecx, dword [esp + 0x30]
mov esi, 1
cmp ecx, esi
jle 0x47fd91
movzx eax, word [ebx + esi*2]
cmp ax, 0x3d
je 0x47fd91
cmp ax, 0x20
je 0x47fd91
cmp ax, 9
je 0x47fd91
inc esi
cmp esi, ecx
jl 0x47fd76
mov edx, 0x3d
cmp dx, word [ebx + esi*2]
jne 0x47fd9d
inc esi
mov eax, dword [0x57c340]
mov edi, dword [esp + 0x20]
imul eax, eax, 0x154
mov ecx, dword [eax + 0x584cdc]
push ecx
push edi
call dword [0x53d1e8]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
push 0
push esi
push ebx
push edx
push 4
add ebp, eax
push ebp
mov ebp, dword [esp + 0x3c]
mov ecx, dword [ebp]
push ecx
push edi
call dword [0x53d204]
lea edx, [esp + 0x14]
push edx
push esi
push ebx
push edi
mov dword [esp + 0x24], 0
call dword [0x53d21c]
mov eax, dword [esp + 0x14]
add dword [ebp], eax
cmp esi, dword [esp + 0x30]
jge 0x47ff71
mov ecx, dword [0x57c340]
imul ecx, ecx, 0x154
mov edx, dword [ecx + 0x584d00]
push edx
push edi
call dword [0x53d1e8]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
sub eax, esi
push eax
lea edx, [ebx + esi*2]
push edx
jmp 0x47ff61
cmp ax, 0x3b
jne 0x47fe84
mov ecx, dword [0x57c340]
mov edi, dword [esp + 0x20]
imul ecx, ecx, 0x154
mov edx, dword [ecx + 0x584cf8]
push edx
push edi
call dword [0x53d1e8]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push ebx
push ecx
push eax
mov ecx, esi
push edi
call fcn.0047f950
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x1c
mov eax, dword [esp + 0x30]
xor esi, esi
test eax, eax
jle 0x47feac
lea ecx, [esi + 0x21]
cmp word [ebx + esi*2], 0x5e
jne 0x47fea7
cmp word [ebx + esi*2 + 2], cx
je 0x47feac
lea edx, [eax - 1]
cmp esi, edx
jge 0x47fea7
inc esi
inc esi
cmp esi, eax
jl 0x47fe91
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
push eax
push ecx
mov ecx, dword [esp + 0x18]
push esi
push ebx
push edx
push ebp
push edi
call fcn.0047f950
cmp esi, dword [esp + 0x30]
je 0x47ff71
mov eax, dword [0x57c340]
imul eax, eax, 0x154
mov ecx, dword [eax + 0x584ce0]
push ecx
push edi
lea ebx, [ebx + esi*2]
call dword [0x53d1e8]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
push 0
push 2
push ebx
push edx
mov edx, dword [ebp]
push 4
add eax, ecx
push eax
push edx
push edi
call dword [0x53d204]
lea eax, [esp + 0x14]
push eax
push 2
push ebx
push edi
mov dword [esp + 0x24], 0
call dword [0x53d21c]
mov ecx, dword [esp + 0x14]
add dword [ebp], ecx
mov edx, 0xfffffffe
sub edx, esi
mov esi, dword [esp + 0x30]
add esi, edx
je 0x47ff71
mov eax, dword [0x5826a8]
push eax
push edi
call dword [0x53d1e8]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
push esi
add ebx, 4
push ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
push eax
push ebp
push edi
call fcn.0047f950
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x1c