Function at 0x475860
Capabilities:
Parse credit card information

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov edi, dword [esp + 0x3c]
mov eax, dword [edi]
mov edx, eax
mov dword [esp + 0x10], ecx
cmp word [ecx], 0x28
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0
jne 0x475a0f
movzx edx, word [ecx + 2]
cmp edx, 0x2a
jne 0x4758b0
add ecx, 4
mov dword [esp + 0x10], ecx
jmp 0x475a0f
cmp edx, 0x3f
je 0x4758d0
inc eax
mov dword [edi], eax
test ebx, ebx
jne 0x4758c4
cmp eax, ebp
je 0x475cf3
add ecx, 2
mov dword [esp + 0x10], ecx
jmp 0x475a0f
movzx edx, word [ecx + 4]
cmp edx, 0x7c
jne 0x4758ed
add ecx, 6
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 1
jmp 0x475a0f
cmp edx, 0x23
jne 0x47592f
add ecx, 6
mov dword [esp + 0x10], ecx
movzx eax, word [ecx]
test ax, ax
je 0x475cea
cmp ax, 0x29
je 0x475cea
add ecx, 2
mov dword [esp + 0x10], ecx
movzx eax, word [ecx]
test ax, ax
jne 0x475905
mov edx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword [edx], ecx
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret
add ecx, 4
mov dword [esp + 0x10], ecx
cmp edx, 0x28
jne 0x475982
cmp word [ecx + 2], 0x3f
je 0x475a0f
movzx eax, word [ecx]
test ax, ax
je 0x475a0f
cmp ax, 0x29
je 0x47596c
add ecx, 2
mov dword [esp + 0x10], ecx
movzx eax, word [ecx]
test ax, ax
jne 0x475952
jmp 0x475a0f
cmp word [ecx], 0
je 0x475a0f
add ecx, 2
mov dword [esp + 0x10], ecx
jmp 0x475a0f
cmp word [ecx], 0x50
jne 0x47598f
add ecx, 2
mov dword [esp + 0x10], ecx
movzx edx, word [ecx]
cmp edx, 0x3c
jne 0x4759a5
movzx esi, word [ecx + 2]
cmp esi, 0x21
je 0x4759a5
cmp esi, 0x3d
jne 0x4759aa
cmp edx, 0x27
jne 0x475a0f
inc eax
mov dword [edi], eax
test ebx, ebx
jne 0x4759b9
cmp eax, ebp
je 0x475cf3
movzx eax, word [ecx]
add ecx, 2
mov dword [esp + 0x10], ecx
cmp eax, 0x3c
jne 0x4759cd
mov eax, 0x3e
movzx esi, word [ecx]
mov edx, ecx
cmp esi, eax
je 0x4759e4
add ecx, 2
mov dword [esp + 0x10], ecx
movzx esi, word [ecx]
cmp esi, eax
jne 0x4759d6
test ebx, ebx
je 0x475a0f
mov eax, ecx
sub eax, edx
sar eax, 1
cmp ebp, eax
jne 0x475a0f
push ebp
push edx
push ebx
call fcn.00489c92
add esp, 0xc
test eax, eax
jne 0x475a0b
mov eax, dword [edi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x28]
cmp ecx, dword [ebx + 0x1c]
jae 0x475cea
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
movzx eax, word [ecx]
cmp eax, 0x5c
jne 0x475a84
add ecx, 2
mov dword [esp + 0x10], ecx
movzx eax, word [ecx]
test ax, ax
je 0x475cea
cmp eax, 0x51
jne 0x475cb4
jmp 0x475a50
add ecx, 2
mov dword [esp + 0x10], ecx
movzx eax, word [ecx]
test ax, ax
je 0x475cea
cmp eax, 0x5c
jne 0x475a50
cmp word [ecx], 0
je 0x475cea
add ecx, 2
mov dword [esp + 0x10], ecx
cmp word [ecx], 0x45
jne 0x475a50
jmp 0x475cb4
cmp eax, 0x5b
jne 0x475b73
xor esi, esi
nop
movzx eax, word [ecx + 2]
cmp eax, 0x5c
jne 0x475ac9
add ecx, 4
cmp word [ecx], 0x45
jne 0x475aa8
mov dword [esp + 0x10], ecx
jmp 0x475a90
push 3
push 0x4b8714
push ecx
call fcn.00489c92
mov ecx, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jne 0x475ade
add ecx, 8
mov dword [esp + 0x10], ecx
jmp 0x475a90
test esi, esi
jne 0x475ade
cmp eax, 0x5e
jne 0x475ade
add ecx, 2
lea esi, [eax - 0x5d]
mov dword [esp + 0x10], ecx
jmp 0x475a90
cmp word [ecx + 2], 0x5d
jne 0x475af1
test dword [ebx + 0x48], 0x2000000
jne 0x475af1
add ecx, 2
add ecx, 2
mov dword [esp + 0x10], ecx
movzx eax, word [ecx]
cmp eax, 0x5d
je 0x475cb4
test ax, ax
je 0x475cf0
cmp ax, 0x5c
jne 0x475b5f
add ecx, 2
mov dword [esp + 0x10], ecx
movzx eax, word [ecx]
test ax, ax
je 0x475cea
cmp eax, 0x51
jne 0x475b5f
jmp 0x475b30
add ecx, 2
mov dword [esp + 0x10], ecx
movzx eax, word [ecx]
test ax, ax
je 0x475cea
cmp eax, 0x5c
jne 0x475b30
cmp word [ecx], 0
je 0x475cea
add ecx, 2
mov dword [esp + 0x10], ecx
cmp word [ecx], 0x45
jne 0x475b30
add ecx, 2
mov dword [esp + 0x10], ecx
movzx eax, word [ecx]
cmp eax, 0x5d
jne 0x475b04
jmp 0x475cb4
test edi, edi
je 0x475c59
cmp eax, 0x23
jne 0x475c59
add ecx, 2
mov dword [esp + 0x10], ecx
movzx eax, word [ecx]
test ax, ax
je 0x475cea
mov edx, dword [ebx + 0x5c]
test edx, edx
je 0x475bd4
mov eax, dword [ebx + 0x1c]
cmp ecx, eax
jae 0x475bfb
push ebp
lea edi, [ebx + 0x60]
push edx
call fcn.00487740
add esp, 8
test eax, eax
je 0x475bfb
mov eax, dword [ebx + 0x60]
lea ecx, [ecx + eax*2 - 2]
mov dword [esp + 0x10], ecx
cmp word [ecx], 0
je 0x475cea
mov edi, dword [esp + 0x34]
jmp 0x475cb4
mov edx, dword [ebx + 0x60]
mov edi, dword [ebx + 0x1c]
lea esi, [edx + edx]
sub edi, esi
cmp ecx, edi
ja 0x475bfb
movzx esi, byte [ebx + 0x64]
cmp ax, si
jne 0x475bfb
cmp edx, 1
je 0x475bb6
movzx edx, byte [ebx + 0x65]
cmp word [ecx + 2], dx
je 0x475bb6
add ecx, 2
mov dword [esp + 0x10], ecx
test ebp, ebp
je 0x475c3c
movzx eax, word [ecx]
mov edx, 0xdc00
cmp ax, dx
jb 0x475c3c
mov edx, 0xdfff
cmp ax, dx
ja 0x475c3c
movzx eax, word [ecx - 2]
mov edx, 0xd800
cmp ax, dx
jb 0x475c3c
mov edx, 0xdbff
cmp ax, dx
ja 0x475c3c
add ecx, 2
mov dword [esp + 0x10], ecx
movzx eax, word [ecx]
test ax, ax
jne 0x475b97
mov edx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword [edx], ecx
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret
cmp eax, 0x28
jne 0x475c8d
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push ecx
push ebp
push edi
push edx
push eax
lea ecx, [esp + 0x24]
push ebx
push ecx
call fcn.00475860
add esp, 0x1c
test eax, eax
jg 0x475cf3
mov ecx, dword [esp + 0x10]
cmp word [ecx], 0
je 0x475cea
jmp 0x475cb4
cmp eax, 0x29
je 0x475cd5
cmp eax, 0x7c
jne 0x475cb4
cmp dword [esp + 0x14], 0
je 0x475cb4
mov edx, dword [esp + 0x3c]
mov eax, dword [edx]
cmp eax, dword [esp + 0x18]
jle 0x475cae
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
mov dword [edx], eax
add ecx, 2
mov dword [esp + 0x10], ecx
cmp ecx, dword [ebx + 0x1c]
jb 0x475a24
mov edx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword [edx], ecx
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret
cmp dword [esp + 0x14], 0
je 0x475cea
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
cmp dword [edx], eax
jge 0x475cea
mov dword [edx], eax
mov edx, dword [esp + 0x24]
mov dword [edx], ecx
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret