Function at 0x406940
Capabilities:
Parse credit card information
Parse pe header

Disassembly:
mov eax, 0x2010
call fcn.004203f0
mov eax, dword [esp + 0x201c]
push ebx
mov ebx, dword [esp + 0x201c]
push ebp
xor ebp, ebp
or ecx, 0xffffffff
push esi
push edi
mov word [esp + 0x18], cx
cmp dword [eax + 8], ebp
jbe 0x40699e
xor edi, edi
lea ecx, [ecx]
mov ecx, dword [eax + 4]
mov esi, dword [ecx + edi*4]
test esi, esi
je 0x406998
movzx eax, word [esi + 8]
cmp ax, 0x3f
jle 0x406a5f
push esi
call fcn.00412f61
mov eax, dword [esp + 0x2030]
add esp, 4
inc edi
cmp edi, dword [eax + 8]
jb 0x406970
mov dword [eax + 8], ebp
cmp word [ebx], bp
je 0x406b19
lea ebx, [ebx]
movzx eax, word [ebx + ebp*2]
cmp ax, 0x20
je 0x406ab7
cmp ax, 9
je 0x406ab7
movzx eax, word [ebx + ebp*2]
test ax, ax
je 0x406b04
movzx esi, ax
xor edi, edi
mov dword [esp + 0x1c], ebp
mov word [esp + 0x1a], bp
cmp si, 0x30
jae 0x406abd
cmp si, 0x2e
je 0x406ac7
cmp si, 0x41
jae 0x406be7
cmp si, 0x61
jae 0x406ea9
cmp si, 0x5f
je 0x406bf1
movzx eax, si
cmp eax, 0x24
je 0x406b50
cmp eax, 0x3d
je 0x406c28
cmp eax, 0x28
je 0x406c79
cmp eax, 0x29
je 0x406c58
cmp eax, 0x22
je case.0x406a58.39
sub eax, 0x1a
cmp eax, 0x44
ja case.0x406a58.27
movzx edx, byte [eax + 0x406fa4]
jmp dword [edx*4 + 0x406f68]
cmp ax, 0x30
jl 0x406988
mov eax, dword [esi]
test eax, eax
je 0x406988
mov ecx, dword [eax + 0xc]
dec dword [ecx]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x1c], eax
cmp dword [edx], ebp
je 0x42bdb2
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00412f61
add esp, 4
jmp 0x406988
mov edi, 0x40
lea esi, [esp + 0x10]
call fcn.00406ff0
mov edi, dword [esp + 0x202c]
push esi
call fcn.00406830
inc ebp
jmp 0x406af9
inc ebp
jmp 0x4069b0
cmp si, 0x39
ja 0x4069ed
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
mov eax, ebx
call fcn.00407060
cmp al, 1
jne 0x42bdd3
mov edi, dword [esp + 0x202c]
lea ecx, [esp + 0x10]
push ecx
call fcn.00406830
mov ebp, dword [esp + 0x1c]
cmp word [ebx + ebp*2], 0
jne 0x4069b0
mov ax, word [esp + 0x18]
cmp ax, 0x30
jl 0x406b19
cmp ax, 0x3f
jle 0x406db5
mov edi, dword [esp + 0x202c]
lea ecx, [esp + 0x10]
mov eax, 0x7f
push ecx
mov word [esp + 0x1c], ax
mov dword [esp + 0x14], 0
mov word [esp + 0x1e], bp
call fcn.00406830
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2010
ret 0xc
movzx eax, word [ebx + ebp*2 + 2]
inc ebp
cmp ax, 0x5a
ja 0x406b62
cmp ax, 0x41
jae 0x406b6e
cmp ax, 0x61
jb 0x406b76
cmp ax, 0x7a
ja 0x406b76
mov word [esp + edi*2 + 0x20], ax
inc edi
jmp 0x406b50
cmp ax, 0x30
jae 0x406da6
cmp ax, 0x5f
je 0x406b6e
lea ecx, [esp + 0x20]
xor eax, eax
push ecx
mov word [esp + edi*2 + 0x24], ax
call dword [sym.imp.USER32.dll_CharUpperW]
test edi, edi
je 0x42bf6e
mov ax, word [esp + 0x18]
cmp ax, 0x30
jge 0x406dd6
mov edx, 0x33
mov word [esp + 0x18], dx
mov dword [esp + 0x10], 0
lea edi, [esp + 0x20]
lea ebx, [esp + 0x10]
call fcn.004067f0
mov edi, dword [esp + 0x202c]
push ebx
call fcn.00406830
mov ebx, dword [esp + 0x2028]
jmp 0x406af9
cmp si, 0x5a
ja 0x406a01
push ebx
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
lea eax, [esp + 0x20]
call fcn.00407210
cmp dword [esp + 0x10], 0xffffffff
je 0x42bf96
mov edi, dword [esp + 0x202c]
lea ecx, [esp + 0x10]
push ecx
call fcn.00406830
mov ebp, dword [esp + 0x1c]
jmp 0x406af9
inc ebp
cmp word [ebx + ebp*2], 0x3d
lea esi, [esp + 0x10]
je 0x42bf47
mov edi, 0x41
call fcn.00406ff0
mov edi, dword [esp + 0x202c]
lea edx, [esp + 0x10]
push edx
call fcn.00406830
jmp 0x406af9
mov edi, 0x48
lea esi, [esp + 0x10]
call fcn.00406ff0
mov edi, dword [esp + 0x202c]
push esi
call fcn.00406830
inc ebp
jmp 0x406af9
mov edi, 0x47
lea esi, [esp + 0x10]
call fcn.00406ff0
mov edi, dword [esp + 0x202c]
push esi
call fcn.00406830
inc ebp
jmp 0x406af9
mov ecx, dword [esp + 0x2024]
lea eax, [esp + 0x20]
push eax
push ecx
lea edx, [esp + 0x24]
mov edi, ebx
call fcn.00406720
lea esi, [esp + 0x10]
test eax, eax
jne 0x42c027
lea edi, [eax + 0x36]
call fcn.00406ff0
lea edi, [esp + 0x20]
mov ebx, esi
call fcn.004067f0
mov edi, dword [esp + 0x202c]
push esi
call fcn.00406830
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x2028]
jmp 0x406af9
mov edi, 0x4d
lea esi, [esp + 0x10]
call fcn.00406ff0
inc ebp
cmp word [ebx + ebp*2], 0x3d
je 0x406eb8
mov edi, dword [esp + 0x202c]
push esi
call fcn.00406830
jmp 0x406af9
mov edi, 0x49
lea esi, [esp + 0x10]
call fcn.00406ff0
inc ebp
cmp word [ebx + ebp*2], 0x3d
je 0x406ed9
mov edi, dword [esp + 0x202c]
push esi
call fcn.00406830
jmp 0x406af9
mov edi, 0x4c
lea esi, [esp + 0x10]
call fcn.00406ff0
inc ebp
cmp word [ebx + ebp*2], 0x3d
je 0x42bed4
mov edi, dword [esp + 0x202c]
lea ecx, [esp + 0x10]
push ecx
call fcn.00406830
jmp 0x406af9
mov edi, 0x4b
lea esi, [esp + 0x10]
call fcn.00406ff0
inc ebp
cmp word [ebx + ebp*2], 0x3d
je 0x42be9f
mov edi, dword [esp + 0x202c]
lea edx, [esp + 0x10]
push edx
call fcn.00406830
jmp 0x406af9
cmp ax, 0x39
jbe 0x406b6e
jmp 0x406b80
mov esi, dword [esp + 0x10]
test esi, esi
je 0x406b19
mov ecx, esi
call fcn.004066f0
push esi
call fcn.00412f61
add esp, 4
jmp 0x406b19
cmp ax, 0x3f
jg 0x406baf
jmp 0x42bf57
mov edi, 0x4e
lea esi, [esp + 0x10]
call fcn.00406ff0
mov edi, dword [esp + 0x202c]
push esi
call fcn.00406830
inc ebp
jmp 0x406af9
mov edi, 0x4f
lea esi, [esp + 0x10]
call fcn.00406ff0
mov edi, dword [esp + 0x202c]
push esi
call fcn.00406830
inc ebp
jmp 0x406af9
movzx eax, word [ebx + ebp*2 + 2]
inc ebp
cmp ax, 0x5a
ja 0x406e39
cmp ax, 0x41
jae 0x406e45
cmp ax, 0x61
jb 0x406e4d
cmp ax, 0x7a
ja 0x406e4d
mov word [esp + edi*2 + 0x20], ax
inc edi
jmp case.0x406a58.64
cmp ax, 0x30
jae 0x42be55
cmp ax, 0x5f
je 0x406e45
lea ecx, [esp + 0x20]
xor eax, eax
push ecx
mov word [esp + edi*2 + 0x24], ax
call dword [sym.imp.USER32.dll_CharUpperW]
test edi, edi
je 0x42bfff
mov edi, 0x32
lea esi, [esp + 0x10]
call fcn.00406ff0
lea edi, [esp + 0x20]
mov ebx, esi
call fcn.004067f0
mov edi, dword [esp + 0x202c]
push esi
call fcn.00406830
mov ebx, dword [esp + 0x2028]
jmp 0x406af9
cmp si, 0x7a
jbe 0x406bf1
jmp 0x406a0b
mov edi, 0x56
lea esi, [esp + 0x10]
inc ebp
call fcn.00406ff0
mov edi, dword [esp + 0x202c]
push esi
call fcn.00406830
jmp 0x406af9
mov edi, 0x52
lea esi, [esp + 0x10]
inc ebp
call fcn.00406ff0
mov edi, dword [esp + 0x202c]
push esi
call fcn.00406830
jmp 0x406af9
movzx eax, word [ebx + ebp*2 + 2]
inc ebp
sub eax, 0x3d
lea esi, [esp + 0x10]
je 0x42bef8
sub eax, 1
je 0x42bee8
mov edi, 0x43
call fcn.00406ff0
mov edi, dword [esp + 0x202c]
lea eax, [esp + 0x10]
push eax
call fcn.00406830
jmp 0x406af9
inc ebp
cmp word [ebx + ebp*2], 0x3d
lea esi, [esp + 0x10]
je 0x42bf08
mov edi, 0x42
call fcn.00406ff0
mov edi, dword [esp + 0x202c]
lea ecx, [esp + 0x10]
push ecx
call fcn.00406830
jmp 0x406af9
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push ecx
call fcn.00412f61
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0xc]
push eax
call fcn.00412f61
add esp, 8
jmp 0x406a87
mov ebp, dword [esp + 0x1c]
cmp si, 0x2e
jne 0x4069f7
movzx eax, word [ebx + ebp*2 + 2]
inc ebp
cmp ax, 0x41
jb 0x42bdfb
cmp ax, 0x5a
jbe 0x42be4d
cmp ax, 0x61
jb 0x42be0f
cmp ax, 0x7a
jbe 0x42be4d
cmp ax, 0x30
jb 0x42be23
cmp ax, 0x39
jbe 0x42be4d
cmp ax, 0x5f
je 0x42be4d
xor edx, edx
mov word [esp + edi*2 + 0x20], dx
test edi, edi
je 0x42bf6e
lea edi, [edx + 0x35]
lea esi, [esp + 0x10]
call fcn.00406ff0
jmp 0x406bc1
mov word [esp + edi*2 + 0x20], ax
inc edi
jmp 0x42bde1
cmp ax, 0x39
jbe 0x406e45
jmp 0x406e57
mov edi, 0x4a
lea esi, [esp + 0x10]
call fcn.00406ff0
inc ebp
cmp word [ebx + ebp*2], 0x3d
jne 0x42be89
mov edi, 0x53
inc ebp
call fcn.00406ff0
mov edi, dword [esp + 0x202c]
lea ecx, [esp + 0x10]
push ecx
call fcn.00406830
jmp 0x406af9
mov edi, 0x54
lea esi, [esp + 0x10]
inc ebp
call fcn.00406ff0
jmp 0x406d90
mov edi, 0x51
lea esi, [esp + 0x10]
call fcn.00406ff0
mov edi, dword [esp + 0x202c]
push esi
call fcn.00406830
inc ebp
jmp 0x406af9
mov edi, 0x55
lea esi, [esp + 0x10]
inc ebp
call fcn.00406ff0
jmp 0x406d60
mov edi, 0x44
call fcn.00406ff0
inc ebp
jmp 0x406f20
mov edi, 0x46
call fcn.00406ff0
inc ebp
jmp 0x406f20
mov edi, 0x45
call fcn.00406ff0
inc ebp
jmp 0x406f50
test ebp, ebp
jne case.0x406a58.27
cmp word [ebx + 2], bp
jne case.0x406a58.27
mov edx, dword [esp + 0x2024]
cmp edx, dword [0x4a4738]
jl case.0x406a58.27
mov ebp, 1
jmp 0x406af9
mov edi, 0x50
call fcn.00406ff0
inc ebp
jmp 0x406c42
mov eax, dword [esp + 0x10]
test eax, eax
je 0x406baf
push eax
call fcn.0044db5e
jmp 0x406baf
mov ecx, dword [esp + 0x2024]
dec ebp
push ebp
push 0x138b
push ecx
call fcn.0043accb
lea edx, [esp + 0x10]
push edx
call fcn.0044db8b
mov eax, 1
jmp 0x406b43
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2024]
push eax
push 0x138c
push ecx
call fcn.0043accb
lea edx, [esp + 0x10]
push edx
call fcn.0044db8b
mov eax, 1
jmp 0x406b43
mov edx, dword [esp + 0x2024]
push ebp
push 0x1388
push edx
call fcn.0043accb
mov edi, 0x7f
lea esi, [esp + 0x10]
call fcn.00406ff0
mov edi, dword [esp + 0x202c]
push esi
call fcn.00406830
push esi
call fcn.0044db8b
mov eax, 1
jmp 0x406b43
mov eax, dword [esp + 0x2024]
dec ebp
push ebp
push 0x138b
push eax
call fcn.0043accb
lea ecx, [esp + 0x10]
push ecx
call fcn.0044db8b
mov eax, 1
jmp 0x406b43
mov edi, 0x7f
call fcn.00406ff0
mov edi, dword [esp + 0x202c]
lea edx, [esp + 0x10]
push edx
call fcn.00406830
lea eax, [esp + 0x10]
push eax
call fcn.0044db8b
mov eax, 1
jmp 0x406b43