Function at 0x40659e
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x44f00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
push ebx
mov ebx, edx
mov dword [ebp - 0x28], ebx
push esi
mov esi, ebx
mov dword [ebp - 8], esi
push edi
test ecx, ecx
je 0x406684
test ebx, ebx
je 0x406684
cmp ecx, ebx
je 0x406684
mov bl, byte [ecx]
xor edi, edi
xor edx, edx
mov dword [ebp - 0x1c], edi
inc ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], edi
mov eax, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0xc], ecx
test bl, bl
je 0x406647
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x2c], eax
nop word [eax + eax]
cmp edi, 0x1048
mov dword [ebp - 0x10], 0
cmove eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
cmp bl, 0x3a
jne 0x406443
mov ecx, dword [ebp - 0x14]
test dl, dl
jns 0x4064f7
test ecx, ecx
jne 0x4064f7
test eax, eax
je 0x406438
mov edx, dword [ebp - 0x28]
mov byte [esi], cl
mov ecx, esi
sub ecx, edi
cmp ecx, edx
jb 0x406684
lea eax, [edx + 0x1048]
cmp ecx, eax
ja 0x406684
sub eax, ecx
inc eax
push eax
push ecx
call fcn.00416ed3
push eax
call fcn.00401b40
add esp, 0xc
cmp edi, 4
jne 0x406435
push edi
lea eax, [esi - 4]
push eax
push str.file
call fcn.00416f30
mov ecx, dword [ebp - 0x24]
add esp, 0xc
test eax, eax
cmove ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x18]
lea ecx, [edi + 1]
mov dword [ebp - 0x14], ecx
jmp 0x4064f7
cmp bl, 0x25
jne 0x406526
test dl, 4
je 0x4064f4
mov cl, byte [ecx]
test cl, cl
je 0x406647
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x40646f
movzx eax, cl
sub ax, 0x30
jmp 0x406491
lea eax, [ecx - 0x41]
cmp al, 5
ja 0x40647f
movzx eax, cl
sub ax, 0x37
jmp 0x406491
lea eax, [ecx - 0x61]
cmp al, 5
ja 0x406640
movzx eax, cl
sub ax, 0x57
movzx ebx, ax
test bx, bx
js 0x406640
mov eax, dword [ebp - 0x20]
shl bl, 4
mov cl, byte [eax + 1]
test cl, cl
je 0x406644
add eax, 2
mov dword [ebp - 0xc], eax
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x4064c4
movzx eax, cl
sub ax, 0x30
jmp 0x4064e6
lea eax, [ecx - 0x41]
cmp al, 5
ja 0x4064d4
movzx eax, cl
sub ax, 0x37
jmp 0x4064e6
lea eax, [ecx - 0x61]
cmp al, 5
ja 0x406639
movzx eax, cl
sub ax, 0x57
movzx eax, ax
test ax, ax
js 0x406639
add bl, al
mov ecx, dword [ebp - 0x14]
mov eax, edx
and al, 0x82
cmp al, 0x80
jne 0x406578
cmp bl, 0x5c
jne 0x406540
test ecx, ecx
jne 0x406510
test edx, 0x100
je 0x406578
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40657b
cmp dword [ebp - 0x24], 0
je 0x406522
cmp edi, 7
jae 0x40657b
mov bl, 0x2f
jmp 0x40657b
cmp bl, 0x3f
je 0x406530
cmp bl, 0x23
jne 0x4064f4
mov ecx, dword [ebp - 0x14]
test dl, 0x20
je 0x4064f7
or edx, 2
mov dword [ebp - 0x18], edx
jmp 0x4064f7
cmp bl, 0x2e
jne 0x406578
test edi, edi
je 0x406578
test dl, 8
jne 0x406578
push ecx
push edx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
lea edx, [esi - 1]
lea ecx, [ebp - 8]
call fcn.00406240
mov edi, dword [ebp - 0x1c]
add esp, 0x14
mov esi, dword [ebp - 8]
test eax, eax
jne 0x40661e
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
movzx eax, bl
mov dword [ebp - 0x20], eax
add eax, 0xffffffe0
cmp eax, 0x5d
ja case.0x406590.33
movzx eax, byte [eax + 0x406698]
jmp dword [eax*4 + 0x406690]
lea eax, [ebx - 0x20]
cmp al, 0x5e
jbe 0x406610
test dl, 2
jne 0x406610
test dl, 0x10
je 0x4065ad
cmp bl, 0x20
jne 0x406610
test dl, 8
je 0x4065b7
cmp bl, 0x2e
je 0x406610
test dl, 0x40
jne 0x4065c1
cmp bl, 0x25
je 0x406610
cmp edi, 0x1045
jb 0x4065d3
xor edx, edx
add edi, 2
mov dword [ebp - 0x10], edx
jmp 0x40661a
test ecx, ecx
je 0x40660b
mov byte [esi], 0x25
lea ecx, [esi + 1]
cmp bl, 0x10
jae 0x4065e6
mov byte [ecx], 0x30
inc ecx
mov eax, dword [ebp - 0x28]
add eax, 0x1048
push 0x10
sub eax, ecx
push eax
push ecx
push dword [ebp - 0x20]
call fcn.0041707c
push eax
call fcn.00401b40
add esp, 0x14
add esi, 3
mov dword [ebp - 8], esi
add edi, 2
jmp 0x40661a
test ecx, ecx
je 0x40661a
mov byte [esi], bl
inc esi
mov dword [ebp - 8], esi
inc edi
mov dword [ebp - 0x1c], edi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov bl, byte [ecx]
inc ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x20], ecx
test bl, bl
je 0x406647
mov edx, dword [ebp - 0x18]
jmp 0x4063b0
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x406647
xor edx, edx
jmp 0x406659
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
test eax, eax
je 0x406659
cmp edi, 0x1048
jae 0x406659
mov byte [esi], 0
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x406665
lea eax, [edi + 1]
mov dword [ecx], eax
lea ecx, [edi + 1]
xor eax, eax
cmp ecx, 0x1048
mov ecx, dword [ebp - 4]
pop edi
cmovbe eax, edx
xor ecx, ebp
pop esi
pop ebx
call fcn.00409555
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401b20
nop
sahf
inc eax
add byte [edi + 0x4065], dl
add dword [eax], eax
add byte [eax], al
add byte [eax], al
add dword [ecx], eax
add dword [ecx], eax
add byte [eax], al
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add byte [eax], al
add ah, cl
int3