Function at 0x4742b0
Capabilities:
Parse credit card information

Disassembly:
sub esp, 0xc
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 4], ecx
test edi, edi
je 0x474597
mov eax, dword [0x5ed7dc]
cdq
sub eax, edx
sar eax, 1
mov edx, 0
sets dl
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
dec edx
and edx, eax
movzx eax, word [ebp]
mov dword [esp + 0x30], edx
cmp ax, 0x23
jne 0x4743e8
mov esi, 1
cmp edi, esi
jle 0x47431c
jmp 0x474300
movzx eax, word [ebp + esi*2]
cmp ax, 0x3d
je 0x47431c
cmp ax, 0x20
je 0x47431c
cmp ax, 9
je 0x47431c
inc esi
cmp esi, edi
jl 0x474300
mov eax, 0x3d
cmp ax, word [ebp + esi*2]
jne 0x47432d
cmp esi, edi
jge 0x47432d
inc esi
mov ecx, dword [0x5b3594]
imul ecx, ecx, 0x190
cmp dword [0x5ba084], 0
mov eax, dword [ecx + 0x5bd2b8]
je 0x47434d
mov eax, dword [0x5ba1b4]
mov ebx, dword [esp + 0x20]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x34]
push esi
push ebp
push edx
mov edx, dword [esp + 0x3c]
push 4
add eax, ecx
push eax
push edx
push ebx
call fcn.00470a90
add esp, 0x28
cmp esi, edi
jge 0x474594
mov eax, dword [esp + 0x34]
sub edi, esi
lea ebp, [ebp + esi*2]
test eax, eax
je 0x4743a7
lea eax, [eax + esi*4]
mov dword [esp + 0x34], eax
mov ecx, dword [0x5b3594]
imul ecx, ecx, 0x190
cmp dword [0x5ba084], 0
mov eax, dword [ecx + 0x5bd2dc]
je 0x4743c7
mov eax, dword [0x5ba1b4]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x38]
push eax
push ecx
push edx
jmp 0x47457e
cmp ax, 0x3b
jne 0x47444e
mov edx, dword [0x5b3594]
imul edx, edx, 0x190
cmp dword [0x5ba084], 0
mov eax, dword [edx + 0x5bd2d4]
je 0x47440e
mov eax, dword [0x5ba1b4]
mov esi, dword [esp + 0x20]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push eax
push edi
push ebp
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push esi
call fcn.00470df0
pop esi
pop ebp
pop ebx
pop edi
add esp, 0xc
ret 0x24
xor esi, esi
test edi, edi
jle 0x474473
lea eax, [esi + 0x21]
cmp word [ebp + esi*2], 0x5e
jne 0x47446e
cmp word [ebp + esi*2 + 2], ax
je 0x474473
lea edx, [edi - 1]
cmp esi, edx
jge 0x47446e
inc esi
inc esi
cmp esi, edi
jl 0x474457
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push esi
push ebp
push eax
push edx
push ebx
call fcn.00470df0
cmp esi, edi
je 0x474594
mov eax, dword [esp + 0x34]
lea ebp, [ebp + esi*2]
test eax, eax
je 0x4744b8
lea eax, [eax + esi*4]
mov dword [esp + 0x34], eax
mov eax, dword [0x5b3594]
xor edx, edx
lea ecx, [edi - 1]
cmp esi, ecx
setl dl
imul eax, eax, 0x190
mov eax, dword [eax + 0x5bd2bc]
inc edx
cmp dword [0x5ba084], 0
mov dword [esp + 0x20], edx
je 0x4744e6
mov eax, dword [0x5ba1b4]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp dword [esp + 0x40], 0
jne 0x47451d
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x30]
push 0
push ecx
mov ecx, dword [esp + 0x30]
push ebp
push edx
mov edx, dword [esp + 0x34]
push 4
add eax, ecx
push eax
mov eax, dword [edx]
push eax
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edx
push ebp
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
add dword [eax], ecx
add edx, esi
sub edi, edx
test edi, edi
jle 0x474594
mov esi, dword [esp + 0x34]
add ebp, 4
test esi, esi
je 0x474553
add esi, 8
cmp dword [0x5ba084], 0
mov eax, dword [0x5ba1a8]
je 0x474566
mov eax, dword [0x5ba1b4]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push eax
push ecx
push edx
push esi
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push edi
push ebp
push eax
push ecx
mov ecx, dword [esp + 0x30]
push ebx
call fcn.00470df0
pop esi
pop ebp
pop ebx
pop edi
add esp, 0xc
ret 0x24