Function at 0x407640
Capabilities:
Parse credit card information

Disassembly:
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x407b4e
push edi
lea edi, [esi + 8]
push ebx
cmp eax, 0x7c
je 0x407b4c
cmp eax, 0x29
jne 0x407680
cmp dword [esi + 0x10], 0
jne 0x407b4c
test dword [esi + 0x50], 0x10000000
je 0x407b5b
jmp 0x407add
cmp eax, 0x2e
jne 0x4076f2
push 5
lea ecx, [esi + 0x24]
call fcn.0040a250
mov eax, dword [esi]
mov edx, dword [edi]
cmp eax, edx
je 0x407b2d
cmp word [eax], 0x5c
jne 0x4076e8
lea edi, [eax + 2]
mov ecx, eax
cmp edi, edx
je 0x4076e6
mov ebx, dword [esi + 0x50]
test bl, 8
jne 0x4076c3
movzx ecx, word [edi]
mov edx, eax
cmp ecx, 0x28
je 0x4076d9
cmp ecx, 0x29
je 0x4076d9
mov ecx, eax
test bl, 0x10
jne 0x4076e6
movzx edi, word [edi]
mov edx, eax
cmp edi, 0x7b
je 0x4076d9
mov edx, ecx
cmp edi, 0x7d
jne 0x4076e6
lea eax, [edx + 2]
add eax, 2
mov dword [esi], eax
jmp 0x407b2d
mov eax, ecx
add eax, 2
mov dword [esi], eax
jmp 0x407b2d
cmp eax, 0x5c
jne 0x407857
mov eax, dword [esi]
mov edx, dword [edi]
cmp eax, edx
je 0x40774c
cmp word [eax], 0x5c
jne 0x407747
lea ebx, [eax + 2]
mov ecx, eax
cmp ebx, edx
je 0x407745
test byte [esi + 0x50], 8
jne 0x407729
movzx ecx, word [ebx]
mov edx, eax
cmp ecx, 0x28
je 0x407740
cmp ecx, 0x29
je 0x407740
mov ecx, eax
test byte [esi + 0x50], 0x10
jne 0x407745
movzx ebx, word [ebx]
mov edx, eax
cmp ebx, 0x7b
je 0x407740
mov edx, ecx
cmp ebx, 0x7d
jne 0x407745
lea eax, [edx + 2]
jmp 0x407747
mov eax, ecx
add eax, 2
mov dword [esi], eax
mov ecx, esi
call fcn.0040a950
test byte [esi + 0x50], 0x80
je 0x40784b
movzx eax, word [esi + 0x48]
mov ecx, eax
cmp eax, 0x62
jne 0x4077de
push 4
lea ecx, [esi + 0x24]
call fcn.0040a250
mov eax, dword [esi]
mov edx, dword [edi]
cmp eax, edx
je 0x4077d2
cmp word [eax], 0x5c
jne 0x4077cd
lea ebx, [eax + 2]
mov ecx, eax
cmp ebx, edx
je 0x4077cb
test byte [esi + 0x50], 8
jne 0x4077a0
movzx ecx, word [ebx]
mov edx, eax
cmp ecx, 0x28
je 0x4077b7
cmp ecx, 0x29
je 0x4077b7
mov ecx, eax
test byte [esi + 0x50], 0x10
jne 0x4077cb
movzx ebx, word [ebx]
mov edx, eax
cmp ebx, 0x7b
je 0x4077b7
mov edx, ecx
cmp ebx, 0x7d
jne 0x4077cb
lea eax, [edx + 2]
mov ecx, esi
add eax, 2
mov dword [esi], eax
call fcn.0040a950
jmp 0x407b3e
mov eax, ecx
add eax, 2
mov dword [esi], eax
mov ecx, esi
call fcn.0040a950
jmp 0x407b3e
cmp ecx, 0x42
jne 0x40784b
push 4
lea ecx, [esi + 0x24]
call fcn.0040a250
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
mov eax, dword [esi]
mov ecx, dword [edi]
cmp eax, ecx
je 0x40783f
cmp word [eax], 0x5c
jne 0x40783a
lea ebx, [eax + 2]
cmp ebx, ecx
je 0x40783a
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x407823
movzx edx, word [ebx]
mov ecx, eax
cmp edx, 0x28
je 0x407837
cmp edx, 0x29
je 0x407837
mov ecx, dword [esi + 0x50]
test cl, 0x10
jne 0x40783a
movzx edx, word [ebx]
mov ecx, eax
cmp edx, 0x7b
je 0x407837
cmp edx, 0x7d
jne 0x40783a
lea eax, [ecx + 2]
add eax, 2
mov dword [esi], eax
mov ecx, esi
call fcn.0040a950
jmp 0x407b3e
mov ecx, esi
call fcn.00407b80
jmp 0x407b34
cmp eax, 0x5b
jne 0x407952
mov eax, dword [esi]
mov ecx, dword [edi]
cmp eax, ecx
je 0x4078a8
cmp word [eax], 0x5c
jne 0x4078a3
lea edx, [eax + 2]
cmp edx, ecx
je 0x4078a3
mov ebx, dword [esi + 0x50]
test bl, 8
jne 0x40788c
movzx edi, word [edx]
mov ecx, eax
cmp edi, 0x28
je 0x4078a0
cmp edi, 0x29
je 0x4078a0
test bl, 0x10
jne 0x4078a3
movzx edx, word [edx]
mov ecx, eax
cmp edx, 0x7b
je 0x4078a0
cmp edx, 0x7d
jne 0x4078a3
lea eax, [ecx + 2]
add eax, 2
mov dword [esi], eax
mov ecx, esi
call fcn.0040a950
lea edi, [esi + 0x24]
mov ecx, edi
call fcn.00406e80
mov eax, dword [esi + 0x4c]
cmp eax, 0x5e
jne 0x40791e
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
mov eax, dword [esi]
mov ecx, dword [esi + 8]
cmp eax, ecx
je 0x407914
cmp word [eax], 0x5c
jne 0x40790c
lea edx, [eax + 2]
cmp edx, ecx
je 0x40790c
mov ebx, dword [esi + 0x50]
test bl, 8
jne 0x4078f5
movzx edi, word [edx]
mov ecx, eax
cmp edi, 0x28
je 0x407909
cmp edi, 0x29
je 0x407909
test bl, 0x10
jne 0x40790c
movzx edx, word [edx]
mov ecx, eax
cmp edx, 0x7b
je 0x407909
cmp edx, 0x7d
jne 0x40790c
lea eax, [ecx + 2]
add eax, 2
lea edi, [esi + 0x24]
mov dword [esi], eax
mov ecx, esi
call fcn.0040a950
mov eax, dword [esi + 0x4c]
test dword [esi + 0x50], 0x20000000
je 0x40793b
cmp eax, 0x5d
jne 0x40793b
push eax
mov ecx, edi
call fcn.00406e00
mov ecx, esi
call fcn.0040a2c0
mov ecx, esi
call fcn.004085f0
push 4
push 0x5d
mov ecx, esi
call fcn.00409700
jmp 0x407b34
cmp eax, 0x28
jne 0x4079ca
mov eax, dword [esi]
mov ecx, dword [edi]
cmp eax, ecx
je 0x4079a2
cmp word [eax], 0x5c
jne 0x40799d
lea edx, [eax + 2]
cmp edx, ecx
je 0x40799d
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x407986
movzx ebx, word [edx]
mov ecx, eax
cmp ebx, 0x28
je 0x40799a
cmp ebx, 0x29
je 0x40799a
mov ecx, dword [esi + 0x50]
test cl, 0x10
jne 0x40799d
movzx edx, word [edx]
mov ecx, eax
cmp edx, 0x7b
je 0x40799a
cmp edx, 0x7d
jne 0x40799d
lea eax, [ecx + 2]
add eax, 2
mov dword [esi], eax
mov ecx, esi
call fcn.0040a950
mov ecx, esi
call fcn.0040ab60
push 5
push 0x29
mov ecx, esi
mov bl, al
call fcn.00409700
test bl, bl
je 0x407b3e
jmp 0x407b34
cmp eax, 0x5e
jne 0x407a33
push 2
lea ecx, [esi + 0x24]
call fcn.0040a250
mov eax, dword [esi]
lea edi, [esi + 8]
mov ecx, dword [edi]
cmp eax, ecx
je 0x407a27
cmp word [eax], 0x5c
jne 0x407a22
lea edx, [eax + 2]
cmp edx, ecx
je 0x407a22
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x407a0b
movzx ebx, word [edx]
mov ecx, eax
cmp ebx, 0x28
je 0x407a1f
cmp ebx, 0x29
je 0x407a1f
mov ecx, dword [esi + 0x50]
test cl, 0x10
jne 0x407a22
movzx edx, word [edx]
mov ecx, eax
cmp edx, 0x7b
je 0x407a1f
cmp edx, 0x7d
jne 0x407a22
lea eax, [ecx + 2]
add eax, 2
mov dword [esi], eax
mov ecx, esi
call fcn.0040a950
jmp 0x407b3e
cmp eax, 0x24
jne 0x407a93
push 3
lea ecx, [esi + 0x24]
call fcn.0040a250
mov eax, dword [esi]
lea edi, [esi + 8]
mov ecx, dword [edi]
cmp eax, ecx
je 0x407a87
cmp word [eax], 0x5c
jne 0x407a84
add eax, 2
cmp eax, ecx
je 0x407a84
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x407a6f
movzx edx, word [eax]
cmp edx, 0x28
je 0x407a81
cmp edx, 0x29
je 0x407a81
test cl, 0x10
jne 0x407a84
movzx eax, word [eax]
cmp eax, 0x7b
je 0x407a81
cmp eax, 0x7d
jne 0x407a84
add dword [esi], 2
add dword [esi], 2
mov ecx, esi
call fcn.0040a950
jmp 0x407b3e
cmp eax, 0x2a
je 0x407b52
cmp eax, 0x2b
je 0x407b52
cmp eax, 0x3f
je 0x407b52
cmp eax, 0x7b
je 0x407b52
cmp eax, 0x7d
jne 0x407acb
test dword [esi + 0x50], 0x10000000
je 0x407b64
jmp 0x407add
cmp eax, 0x5d
jne 0x407add
test dword [esi + 0x50], 0x10000000
je 0x407b6d
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.00406c30
mov eax, dword [esi]
mov ecx, dword [esi + 8]
cmp eax, ecx
je 0x407b2d
cmp word [eax], 0x5c
jne 0x407b2a
add eax, 2
cmp eax, ecx
je 0x407b2a
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x407b15
movzx edx, word [eax]
cmp edx, 0x28
je 0x407b27
cmp edx, 0x29
je 0x407b27
test cl, 0x10
jne 0x407b2a
movzx eax, word [eax]
cmp eax, 0x7b
je 0x407b27
cmp eax, 0x7d
jne 0x407b2a
add dword [esi], 2
add dword [esi], 2
mov ecx, esi
call fcn.0040a950
mov ecx, esi
call fcn.0040a3f0
lea edi, [esi + 8]
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x407656
pop ebx
pop edi
mov al, cl
pop esi
ret
push 0xa
mov ecx, esi
call fcn.004096f0
push 5
mov ecx, esi
call fcn.004096f0
push 6
mov ecx, esi
call fcn.004096f0
push 4
mov ecx, esi
call fcn.004096f0
int3