Function at 0x47e5e0
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x3c], edx
cmp edi, ecx
jne 0x47e609
xor esi, esi
jmp 0x47e620
mov eax, edi
lea esi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x47e610
sub eax, esi
and eax, 0x3fffffff
mov esi, eax
test bl, 0x40
jne 0x47e631
cmp dword [0x4bac6c], ecx
je 0x47eb05
cmp esi, 5
jl 0x47eb05
cmp dword [edi], 0x656c6966
jne 0x47eb05
cmp byte [edi + 4], 0x3a
jne 0x47eb05
or dword [esp + 0x14], 0x40
lea eax, [esi + 2]
cdq
mov ebx, eax
xor eax, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x34], edx
cmp esi, ecx
jle 0x47e685
cmp byte [eax + edi], 0x26
jne 0x47e676
mov ecx, 1
jmp 0x47e678
xor ecx, ecx
xor edx, edx
add ebx, ecx
adc dword [esp + 0x34], edx
inc eax
cmp eax, esi
jl 0x47e669
call fcn.0047bf80
test eax, eax
jne 0x47e6a6
mov eax, dword [esp + 0x34]
push eax
push ebx
call fcn.00403df0
mov edx, eax
add esp, 8
mov dword [esp + 0x10], edx
test edx, edx
jne 0x47e6b2
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov bl, 0x2f
mov eax, 5
cmp byte [edi + 5], bl
jne 0x47e733
cmp byte [edi + 6], bl
jne 0x47e733
mov cl, byte [edi + 7]
lea edx, [edi + 7]
mov eax, 7
mov dword [esp + 0x30], edx
test cl, cl
je 0x47e72f
cmp cl, bl
je 0x47e6e3
mov cl, byte [eax + edi + 1]
inc eax
test cl, cl
jne 0x47e6d6
cmp eax, 7
je 0x47e72f
cmp eax, 0x10
jne 0x47e713
lea ecx, [eax - 7]
mov esi, 0x4b84dc
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x47e70f
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x47e6f5
mov cl, byte [edx]
cmp cl, byte [esi]
je 0x47e72f
mov edx, dword [esp + 0x30]
push edx
add eax, 0xfffffff9
push eax
push 0x4b84e8
call fcn.004060c0
mov edx, dword [ebp + 0x14]
add esp, 0xc
mov dword [edx], eax
jmp 0x47eb75
mov edx, dword [esp + 0x10]
mov cl, byte [eax + edi]
xor esi, esi
mov dword [esp + 0x1c], esi
test cl, cl
je 0x47e8c1
cmp cl, 0x23
je 0x47e8af
inc eax
cmp cl, 0x25
jne 0x47e81f
mov dl, byte [eax + edi]
movzx ebx, dl
test byte [ebx + 0x4b1258], 8
je 0x47e81b
movzx ebx, byte [eax + edi + 1]
test byte [ebx + 0x4b1258], 8
je 0x47e81b
movsx esi, byte [eax + edi + 1]
movsx ecx, dl
mov edx, ecx
sar edx, 6
and dl, 1
mov bl, dl
add bl, bl
add bl, bl
add bl, bl
sub bl, dl
sub cl, bl
mov edx, esi
sar edx, 6
and dl, 1
mov bl, dl
add bl, bl
add bl, bl
add bl, bl
sub bl, dl
mov dword [esp + 0x30], esi
movzx edx, byte [esp + 0x30]
sub dl, bl
and ecx, 0xf
shl ecx, 4
add eax, 2
and edx, 0xf
add ecx, edx
jne 0x47e812
mov cl, byte [eax + edi]
test cl, cl
je 0x47e89c
mov edx, dword [esp + 0x1c]
cmp cl, 0x23
je 0x47e89c
test edx, edx
jne 0x47e7e6
cmp cl, 0x3f
jmp 0x47e7fe
cmp edx, 1
jne 0x47e7f6
cmp cl, 0x3d
je 0x47e89c
jmp 0x47e7fb
cmp edx, 2
jne 0x47e804
cmp cl, 0x26
je 0x47e89c
mov cl, byte [eax + edi + 1]
inc eax
test cl, cl
jne 0x47e7d4
jmp 0x47e89c
mov edx, dword [esp + 0x10]
jmp 0x47e890
mov edx, dword [esp + 0x10]
cmp esi, 1
jne 0x47e871
cmp cl, 0x26
je 0x47e82e
cmp cl, 0x3d
jne 0x47e890
mov esi, dword [esp + 0x18]
cmp byte [edx + esi - 1], 0
jne 0x47e857
mov cl, byte [eax + edi]
test cl, cl
je 0x47e89c
cmp cl, 0x23
je 0x47e89c
cmp byte [eax + edi - 1], 0x26
je 0x47e89c
mov cl, byte [eax + edi + 1]
inc eax
test cl, cl
jne 0x47e840
jmp 0x47e89c
cmp cl, 0x26
jne 0x47e867
mov byte [edx + esi], 0
inc esi
mov dword [esp + 0x18], esi
jmp 0x47e88e
mov dword [esp + 0x1c], 2
jmp 0x47e88e
test esi, esi
jne 0x47e87c
cmp cl, 0x3f
je 0x47e886
jmp 0x47e890
cmp esi, 2
jne 0x47e890
cmp cl, 0x26
jne 0x47e890
mov dword [esp + 0x1c], 1
xor cl, cl
mov esi, dword [esp + 0x18]
mov byte [edx + esi], cl
inc esi
mov dword [esp + 0x18], esi
mov cl, byte [eax + edi]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
test cl, cl
jne 0x47e744
cmp esi, 1
jne 0x47e8c1
mov eax, dword [esp + 0x18]
mov byte [edx + eax], 0
inc eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov word [edx + eax], 0
mov eax, edx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47e8d0
mov ecx, dword [esp + 0x10]
sub eax, edx
and eax, 0x3fffffff
cmp byte [eax + ecx + 1], 0
lea ecx, [eax + ecx + 1]
je 0x47eb48
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x47e8f6
sub eax, esi
and eax, 0x3fffffff
mov esi, eax
lea eax, [esi + ecx + 1]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x47e916
xor ebx, ebx
jmp 0x47e934
mov eax, dword [esp + 0x1c]
lea edi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x47e920
sub eax, edi
and eax, 0x3fffffff
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], ebx
cmp esi, 3
jne 0x47e963
cmp byte [ecx], 0x76
jne 0x47eacb
cmp byte [ecx + 1], 0x66
jne 0x47eacb
cmp byte [ecx + 2], 0x73
jne 0x47eacb
mov dword [esp + 0x3c], eax
jmp 0x47eacb
cmp esi, 5
jne 0x47e996
cmp dword [ecx], 0x68636163
jne 0x47eacb
cmp byte [ecx + 4], 0x65
jne 0x47eacb
mov eax, 0x60000
mov dword [esp + 0x30], eax
mov edi, 0x4bbabc
mov dword [esp + 0x28], 0x4b8504
jmp 0x47e9c9
cmp esi, 4
jne 0x47eacb
cmp dword [ecx], 0x65646f6d
jne 0x47eacb
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], 0x87
mov edi, 0x4bbad4
and eax, 0x87
mov dword [esp + 0x28], 0x4b850c
mov ecx, dword [edi]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], 0
test ecx, ecx
je 0x47ea7d
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x47e9e4
sub eax, esi
and eax, 0x3fffffff
cmp ebx, eax
jne 0x47ea68
mov edx, dword [esp + 0x1c]
mov esi, ebx
cmp ebx, 4
jb 0x47ea19
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x47ea21
sub esi, 4
add ecx, 4
add edx, 4
cmp esi, 4
jae 0x47ea05
test esi, esi
je 0x47ea9d
movzx ebx, byte [ecx]
movzx eax, byte [edx]
sub eax, ebx
jne 0x47ea5c
cmp esi, 1
jbe 0x47ea99
movzx eax, byte [edx + 1]
movzx ebx, byte [ecx + 1]
sub eax, ebx
jne 0x47ea5c
cmp esi, 2
jbe 0x47ea99
movzx eax, byte [edx + 2]
movzx ebx, byte [ecx + 2]
sub eax, ebx
jne 0x47ea5c
cmp esi, 3
jbe 0x47ea99
movzx eax, byte [edx + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
mov ebx, dword [esp + 0x18]
sar eax, 0x1f
or eax, 1
je 0x47ea9d
mov eax, dword [esp + 0x24]
mov ecx, dword [edi + eax*8 + 8]
inc eax
mov dword [esp + 0x24], eax
test ecx, ecx
jne 0x47e9df
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
push edx
push eax
push 0x4b8514
call fcn.004060c0
add esp, 0xc
jmp 0x47eb70
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov eax, dword [edi + edx*8 + 4]
test eax, eax
je 0x47ea7d
mov ecx, eax
and ecx, 0xffffff7f
cmp ecx, dword [esp + 0x2c]
jg 0x47eadc
mov ecx, dword [esp + 0x30]
not ecx
and ecx, dword [esp + 0x14]
or ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
cmp byte [ebx + eax + 1], 0
lea ecx, [ebx + eax + 1]
jne 0x47e8f1
jmp 0x47eb48
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
push edx
push eax
push 0x4b8528
call fcn.004060c0
mov ecx, dword [ebp + 0x14]
add esp, 0xc
mov dword [ecx], eax
mov dword [esp + 0x20], 3
jmp 0x47eb7d
call fcn.0047bf80
test eax, eax
jne 0x47e6a6
lea eax, [esi + 2]
cdq
push edx
push eax
call fcn.00403df0
mov ebx, eax
add esp, 8
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x47e6a6
test esi, esi
je 0x47eb3d
push esi
push edi
push ebx
call fcn.004a7950
add esp, 0xc
and dword [esp + 0x14], 0xffffffbf
mov word [ebx + esi], 0
mov esi, dword [esp + 0x3c]
push esi
call fcn.004033d0
mov edx, dword [ebp + 0xc]
add esp, 4
mov dword [edx], eax
test eax, eax
jne 0x47ebe5
push esi
push 0x4b8540
call fcn.004060c0
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov dword [esp + 0x20], 1
cmp dword [0x4bac60], 0
je 0x47ebcf
mov eax, dword [0x4bd138]
test eax, eax
je 0x47eb99
push eax
call dword [0x4bacb8]
add esp, 4
mov esi, dword [esp + 0x10]
push esi
call dword [0x4bac94]
sub dword [0x4bcf88], eax
dec dword [0x4bcfac]
add esp, 4
push esi
call dword [0x4bac8c]
mov eax, dword [0x4bd138]
add esp, 4
test eax, eax
je 0x47ebdd
push eax
call dword [0x4bacc0]
jmp 0x47ebda
mov edx, dword [esp + 0x10]
push edx
call dword [0x4bac8c]
add esp, 4
mov dword [esp + 0x10], 0
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x10]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [edx], eax
mov eax, dword [esp + 0x18]
pop ebx
mov esp, ebp
pop ebp
ret