Function at 0x476970
Capabilities:
Parse credit card information

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x34]
push esi
push edi
mov edi, dword [eax]
mov eax, dword [ebp]
mov ecx, eax
mov dword [esp + 0x10], edi
cmp word [edi], 0x28
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 0
jne 0x4769d4
movzx ecx, word [edi + 2]
cmp ecx, 0x2a
jne 0x4769b2
add edi, 4
jmp 0x4769d0
cmp ecx, 0x3f
je 0x476a45
inc eax
mov dword [ebp], eax
test ebx, ebx
jne 0x4769cd
cmp eax, dword [esp + 0x30]
je 0x476df9
add edi, 2
mov dword [esp + 0x10], edi
mov ebx, dword [esp + 0x28]
cmp edi, dword [ebx + 0x1c]
jae 0x476df0
movzx eax, word [edi]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
cmp eax, 0x5c
jne 0x476b88
add edi, 2
mov dword [esp + 0x10], edi
movzx eax, word [edi]
test ax, ax
je 0x476df0
cmp eax, 0x51
jne 0x476dc8
add edi, 2
mov dword [esp + 0x10], edi
movzx eax, word [edi]
test ax, ax
je 0x476df0
cmp eax, 0x5c
jne 0x476a11
cmp word [edi], 0
je 0x476df0
add edi, 2
mov dword [esp + 0x10], edi
cmp word [edi], 0x45
jne 0x476a11
jmp 0x476dc8
movzx ecx, word [edi + 4]
cmp ecx, 0x7c
jne 0x476a5e
add edi, 6
mov dword [esp + 0x18], 1
jmp 0x4769d0
cmp ecx, 0x23
jne 0x476aa0
add edi, 6
mov dword [esp + 0x10], edi
movzx eax, word [edi]
test ax, ax
je 0x476df0
cmp ax, 0x29
je 0x476df0
add edi, 2
mov dword [esp + 0x10], edi
movzx eax, word [edi]
test ax, ax
jne 0x476a76
mov ecx, dword [esp + 0x24]
mov dword [ecx], edi
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret
add edi, 4
mov dword [esp + 0x10], edi
cmp ecx, 0x28
jne 0x476aec
cmp word [edi + 2], 0x3f
je 0x4769d4
movzx eax, word [edi]
test ax, ax
je 0x4769d4
cmp ax, 0x29
je 0x476add
add edi, 2
mov dword [esp + 0x10], edi
movzx eax, word [edi]
test ax, ax
jne 0x476ac3
jmp 0x4769d4
cmp word [edi], 0
je 0x4769d4
jmp 0x4769cd
cmp word [edi], 0x50
jne 0x476af9
add edi, 2
mov dword [esp + 0x10], edi
movzx ecx, word [edi]
cmp ecx, 0x3c
jne 0x476b0f
movzx edx, word [edi + 2]
cmp edx, 0x21
je 0x476b0f
cmp edx, 0x3d
jne 0x476b18
cmp ecx, 0x27
jne 0x4769d4
lea esi, [eax + 1]
mov dword [ebp], esi
test ebx, ebx
jne 0x476b28
cmp esi, dword [esp + 0x30]
je 0x476b7e
movzx ecx, word [edi]
add edi, 2
mov dword [esp + 0x10], edi
cmp ecx, 0x3c
jne 0x476b3c
mov ecx, 0x3e
movzx edx, word [edi]
mov eax, edi
cmp edx, ecx
je 0x476b53
add edi, 2
mov dword [esp + 0x10], edi
movzx edx, word [edi]
cmp edx, ecx
jne 0x476b45
test ebx, ebx
je 0x4769d4
mov ecx, edi
sub ecx, eax
sar ecx, 1
cmp dword [esp + 0x30], ecx
jne 0x4769d4
mov ecx, dword [esp + 0x30]
mov edx, ebx
call fcn.004885c0
test eax, eax
jne 0x4769d4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp eax, 0x5b
jne 0x476ca3
xor ebp, ebp
movzx eax, word [edi + 2]
cmp eax, 0x5c
jne 0x476bea
cmp word [edi + 4], 0x45
lea ecx, [edi + 4]
jne 0x476bae
mov edi, ecx
mov dword [esp + 0x10], edi
jmp 0x476b93
mov ebx, 3
mov esi, 0x4b8bc4
movzx eax, word [ecx]
movzx edx, byte [esi]
dec ebx
add ecx, 2
inc esi
cmp dx, ax
jne 0x476bd5
test ebx, ebx
jne 0x476bb8
add edi, 8
mov dword [esp + 0x10], edi
jmp 0x476b93
sbb eax, eax
neg eax
lea eax, [eax + eax - 1]
test eax, eax
jne 0x476bff
add edi, 8
mov dword [esp + 0x10], edi
jmp 0x476b93
test ebp, ebp
jne 0x476bff
cmp eax, 0x5e
jne 0x476bff
add edi, 2
lea ebp, [eax - 0x5d]
mov dword [esp + 0x10], edi
jmp 0x476b93
cmp word [edi + 2], 0x5d
jne 0x476c16
mov eax, dword [esp + 0x28]
test dword [eax + 0x4c], 0x2000000
jne 0x476c16
add edi, 2
add edi, 2
mov dword [esp + 0x10], edi
movzx eax, word [edi]
cmp eax, 0x5d
je 0x476dc8
lea esp, [esp]
test ax, ax
je 0x476df6
cmp ax, 0x5c
jne 0x476c8f
add edi, 2
mov dword [esp + 0x10], edi
movzx eax, word [edi]
test ax, ax
je 0x476df0
cmp eax, 0x51
jne 0x476c8f
jmp 0x476c60
add edi, 2
mov dword [esp + 0x10], edi
movzx eax, word [edi]
test ax, ax
je 0x476df0
cmp eax, 0x5c
jne 0x476c60
cmp word [edi], 0
je 0x476df0
add edi, 2
mov dword [esp + 0x10], edi
cmp word [edi], 0x45
jne 0x476c60
add edi, 2
mov dword [esp + 0x10], edi
movzx eax, word [edi]
cmp eax, 0x5d
jne 0x476c30
jmp 0x476dc8
test ecx, ecx
je 0x476d71
cmp eax, 0x23
jne 0x476d71
add edi, 2
mov dword [esp + 0x10], edi
movzx ecx, word [edi]
test cx, cx
je 0x476df0
mov eax, dword [ebx + 0x60]
test eax, eax
je 0x476d06
mov edx, dword [ebx + 0x1c]
cmp edi, edx
jae 0x476d2a
mov ecx, dword [esp + 0x38]
push ecx
lea esi, [ebx + 0x64]
push eax
mov ecx, edi
call fcn.00488640
add esp, 8
test eax, eax
je 0x476d2a
mov ecx, dword [ebx + 0x64]
lea edi, [edi + ecx*2 - 2]
mov dword [esp + 0x10], edi
cmp word [edi], 0
je 0x476df0
jmp 0x476dc8
mov eax, dword [ebx + 0x64]
mov esi, dword [ebx + 0x1c]
lea edx, [eax + eax]
sub esi, edx
cmp edi, esi
ja 0x476d2a
cmp cx, word [ebx + 0x68]
jne 0x476d2a
cmp eax, 1
je 0x476cec
mov ax, word [edi + 2]
cmp ax, word [ebx + 0x6a]
je 0x476cec
add edi, 2
cmp dword [esp + 0x38], 0
mov dword [esp + 0x10], edi
je 0x476d54
mov cx, word [edi]
mov edx, 0xfc00
and cx, dx
mov eax, 0xdc00
cmp cx, ax
jne 0x476d54
add edi, 2
mov dword [esp + 0x10], edi
movzx ecx, word [edi]
test cx, cx
jne 0x476cc7
mov ecx, dword [esp + 0x24]
mov dword [ecx], edi
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret
cmp eax, 0x28
jne 0x476da5
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
push ebp
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
push ecx
lea edx, [esp + 0x24]
push ebx
push edx
call fcn.00476970
add esp, 0x1c
test eax, eax
jg 0x476df9
mov edi, dword [esp + 0x10]
cmp word [edi], 0
je 0x476df0
jmp 0x476dc8
cmp eax, 0x29
je 0x476de1
cmp eax, 0x7c
jne 0x476dc8
cmp dword [esp + 0x18], 0
je 0x476dc8
mov eax, dword [ebp]
cmp eax, edx
jle 0x476dc1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov dword [ebp], eax
mov ebx, dword [esp + 0x28]
add edi, 2
mov dword [esp + 0x10], edi
cmp edi, dword [ebx + 0x1c]
jae 0x476df0
mov ebp, dword [esp + 0x3c]
jmp 0x4769e1
cmp dword [esp + 0x18], 0
je 0x476df0
cmp dword [ebp], edx
jge 0x476df0
mov dword [ebp], edx
mov ecx, dword [esp + 0x24]
mov dword [ecx], edi
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret