Function at 0x406700
Capabilities:
Parse credit card information

Disassembly:
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x406960
push ebx
push edi
cmp eax, 0x7c
je 0x40695e
cmp eax, 0x29
jne 0x406741
cmp dword [esi + 0x10], 0
jne 0x40695e
cmp eax, eax
jne 0x406741
test dword [esi + 0x50], 0x10000000
je 0x40696d
jmp 0x406917
cmp eax, 0x2e
jne 0x4067a0
push 5
lea ecx, [esi + 0x24]
call fcn.004096d0
mov eax, dword [esi]
mov edx, dword [esi + 8]
cmp eax, edx
je 0x406794
cmp word [eax], 0x5c
jne 0x40678f
lea ecx, [eax + 2]
cmp ecx, edx
je 0x40678f
mov edx, dword [esi + 0x50]
test dl, 8
jne 0x40677b
movzx edi, word [ecx]
cmp edi, 0x28
je 0x40678d
cmp edi, 0x29
je 0x40678d
test dl, 0x10
jne 0x40678f
movzx edx, word [ecx]
cmp edx, 0x7b
je 0x40678d
cmp edx, 0x7d
jne 0x40678f
mov eax, ecx
add eax, 2
mov dword [esi], eax
mov ecx, esi
call fcn.00409db0
jmp 0x406949
cmp eax, 0x5c
jne 0x4067ff
mov ecx, esi
call fcn.00409740
test byte [esi + 0x50], 0x80
je 0x4067f3
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0x4067d1
push 4
lea ecx, [esi + 0x24]
call fcn.004096d0
mov ecx, esi
call fcn.00409740
jmp 0x406950
cmp eax, 0x42
jne 0x4067f3
push 4
lea ecx, [esi + 0x24]
call fcn.004096d0
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.00409740
jmp 0x406950
mov ecx, esi
call fcn.00406990
jmp 0x406949
cmp eax, 0x5b
jne 0x4068a9
mov ecx, esi
call fcn.00409740
lea ecx, [esi + 0x24]
call fcn.00405cb0
mov eax, dword [esi + 0x4c]
cmp eax, 0x5e
jne 0x406874
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
mov eax, dword [esi]
mov edx, dword [esi + 8]
cmp eax, edx
je 0x40686a
cmp word [eax], 0x5c
jne 0x406865
lea ecx, [eax + 2]
cmp ecx, edx
je 0x406865
mov edx, dword [esi + 0x50]
test dl, 8
jne 0x406851
movzx edi, word [ecx]
cmp edi, 0x28
je 0x406863
cmp edi, 0x29
je 0x406863
test dl, 0x10
jne 0x406865
movzx edx, word [ecx]
cmp edx, 0x7b
je 0x406863
cmp edx, 0x7d
jne 0x406865
mov eax, ecx
add eax, 2
mov dword [esi], eax
mov ecx, esi
call fcn.00409db0
mov eax, dword [esi + 0x4c]
test dword [esi + 0x50], 0x20000000
je 0x406892
cmp eax, 0x5d
jne 0x406892
push eax
lea ecx, [esi + 0x24]
call fcn.00405c30
mov ecx, esi
call fcn.00409740
mov ecx, esi
call fcn.004074b0
push 4
push 0x5d
mov ecx, esi
call fcn.00408ce0
jmp 0x406949
cmp eax, 0x28
jne 0x4068d3
mov ecx, esi
call fcn.00409740
mov ecx, esi
call fcn.00409fc0
push 5
push 0x29
mov ecx, esi
mov bl, al
call fcn.00408ce0
test bl, bl
je 0x406950
jmp 0x406949
cmp eax, 0x5e
jne 0x4068eb
push 2
lea ecx, [esi + 0x24]
call fcn.004096d0
mov ecx, esi
call fcn.00409740
jmp 0x406950
cmp eax, 0x24
jne 0x406903
push 3
lea ecx, [esi + 0x24]
call fcn.004096d0
mov ecx, esi
call fcn.00409740
jmp 0x406950
cmp eax, 0x2a
je 0x406964
cmp eax, 0x2b
je 0x406964
cmp eax, 0x3f
je 0x406964
cmp eax, 0x7b
je 0x406964
cmp eax, 0x7d
jne 0x406927
test dword [esi + 0x50], 0x10000000
je 0x406976
jmp 0x406935
cmp eax, 0x5d
jne 0x406935
test dword [esi + 0x50], 0x10000000
je 0x40697f
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.00405a80
mov ecx, esi
call fcn.00409740
mov ecx, esi
call fcn.00409810
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x406713
pop edi
pop ebx
mov al, cl
pop esi
ret
push 0xa
mov ecx, esi
call fcn.00408cd0
push 5
mov ecx, esi
call fcn.00408cd0
push 6
mov ecx, esi
call fcn.00408cd0
push 4
mov ecx, esi
call fcn.00408cd0
int3