Function at 0x40a4bd
Capabilities:
Parse credit card information

Disassembly:
in al, dx
sub esp, 0x30
push ebx
push esi
or eax, 0xffffffff
lea ecx, [ebp - 0x2c]
push edi
mov word [ebp - 0x14], ax
xor edi, edi
xor eax, eax
mov dword [ebp - 8], edi
push 0x64
mov word [ebp - 0x12], ax
call fcn.00406270
mov ecx, dword [ebp + 0x10]
call fcn.00404140
mov ebx, dword [ebp + 0xc]
cmp word [ebx], di
je 0x409fd2
lea esp, [esp]
movzx eax, word [ebx + edi*2]
cmp eax, 0x20
je 0x40a009
cmp eax, 9
je 0x40a009
movzx eax, word [ebx + edi*2]
mov dword [ebp - 8], edi
test ax, ax
je 0x409fd2
mov esi, eax
mov word [ebp - 0x12], di
mov dword [ebp - 0x12], edi
mov dword [ebp - 0x10], eax
cmp esi, 0x30
jae 0x409f6e
cmp esi, 0x2e
je 0x409f73
cmp esi, 0x41
jae 0x40a00f
cmp esi, 0x61
jae 0x40a107
cmp esi, 0x5f
je 0x40a110
mov eax, esi
cmp eax, 0x24
je case.0x409f4b.64
cmp eax, 0x3d
je 0x40a13c
sub eax, 0x1a
cmp eax, 0x44
ja case.0x409f4b.27
movzx eax, byte [eax + 0x40a45c]
jmp dword [eax*4 + 0x40a410]
push 0x4f
lea ecx, [ebp - 0x1c]
call fcn.0040a5fb
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.0040a4a1
inc edi
mov dword [ebp - 8], edi
jmp 0x409fc7
cmp esi, 0x39
ja 0x409f04
mov eax, dword [ebp + 0x10]
mov edi, 0x40
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x409f90
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4 - 4]
movzx edi, word [eax + 8]
push edi
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 8]
call fcn.00404573
add esp, 0xc
cmp al, 1
jne 0x40a36b
cmp di, 0x4a
je 0x40a310
mov edi, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.0040a4a1
cmp word [ebx + edi*2], 0
jne 0x409ed0
push 0x7f
lea ecx, [ebp - 0x1c]
call fcn.0040a5fb
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push eax
mov word [ebp - 0x12], di
call fcn.0040a4a1
xor esi, esi
lea ecx, [ebp - 0x2c]
call fcn.0040988f
lea ecx, [ebp - 0x1c]
call fcn.0041cf6e
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
inc edi
jmp 0x409ed0
cmp esi, 0x5a
ja 0x409f12
jmp 0x40a110
push dword [ebp + 0x10]
call fcn.00409e4a
test eax, eax
js 0x44f7ea
xor eax, eax
lea ecx, [ebp - 0x1c]
cmp word [ebp - 0x10], 0x24
sete al
add eax, 0x32
push eax
call fcn.0040a5fb
inc edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 8], edi
call fcn.0040a6c3
movzx ebx, word [ebx + edi*2]
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
lea esp, [esp]
cmp bx, 0x5a
jbe 0x40a0b4
cmp bx, 0x61
jb 0x40a0bc
cmp bx, 0x7a
ja 0x40a0bc
mov edx, dword [esi]
cmp edx, 1
jg 0x44f741
xor al, al
test al, al
jne 0x44f748
lea eax, [ecx + 1]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a587
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], bx
inc ecx
inc edi
mov dword [ebp - 0x28], ecx
mov word [eax + ecx*2], dx
mov eax, dword [ebp + 0xc]
movzx ebx, word [eax + edi*2]
jmp 0x40a060
cmp bx, 0x41
cmp ebx, 0x41
jae 0x40a072
jmp 0x40a066
cmp bx, 0x30
jae 0x40a131
cmp bx, 0x5f
je 0x40a072
mov dword [ebp - 8], edi
test ecx, ecx
je 0x40a405
lea ecx, [ebp - 0x2c]
call fcn.0040aec9
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call dword [0x49c684]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040a673
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.0040a4a1
mov ebx, dword [ebp + 0xc]
jmp 0x409fc7
cmp esi, 0x7a
ja 0x409f1b
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
call fcn.004048c8
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x409fb8
jmp 0x44f7ba
cmp bx, 0x39
ja 0x40a0c2
jmp 0x40a072
inc edi
mov dword [ebp - 8], edi
cmp word [ebx + edi*2], 0x3d
je 0x44f737
mov eax, 0x41
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040a5fb
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.0040a4a1
jmp 0x409fc7
push 0x4e
lea ecx, [ebp - 0x1c]
call fcn.0040a5fb
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.0040a4a1
inc edi
mov dword [ebp - 8], edi
jmp 0x409fc7
push 0x47
lea ecx, [ebp - 0x1c]
call fcn.0040a5fb
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.0040a4a1
inc edi
mov dword [ebp - 8], edi
jmp 0x409fc7
push 0x48
lea ecx, [ebp - 0x1c]
call fcn.0040a5fb
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.0040a4a1
inc edi
mov dword [ebp - 8], edi
jmp 0x409fc7
push 0x40
lea ecx, [ebp - 0x1c]
call fcn.0040a5fb
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.0040a4a1
inc edi
mov dword [ebp - 8], edi
jmp 0x409fc7
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
call fcn.00404850
lea ecx, [ebp - 0x1c]
test eax, eax
js 0x44f7d5
push 0x36
call fcn.0040a5fb
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040a673
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.0040a4a1
mov edi, dword [ebp - 8]
jmp 0x409fc7
push 0x4d
lea ecx, [ebp - 0x1c]
call fcn.0040a5fb
inc edi
mov dword [ebp - 8], edi
cmp word [ebx + edi*2], 0x3d
jne 0x409fbb
push 0x56
jmp 0x40a261
push 0x49
lea ecx, [ebp - 0x1c]
call fcn.0040a5fb
inc edi
mov dword [ebp - 8], edi
cmp word [ebx + edi*2], 0x3d
jne 0x409fbb
push 0x52
inc edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], edi
call fcn.0040a5fb
jmp 0x409fbb
push 0x4c
lea ecx, [ebp - 0x1c]
call fcn.0040a5fb
inc edi
mov dword [ebp - 8], edi
cmp word [ebx + edi*2], 0x3d
jne 0x409fbb
inc edi
lea ecx, [ebp - 0x1c]
push 0x55
mov dword [ebp - 8], edi
call fcn.0040a5fb
jmp 0x409fbb
push 0x4b
lea ecx, [ebp - 0x1c]
call fcn.0040a5fb
inc edi
mov dword [ebp - 8], edi
cmp word [ebx + edi*2], 0x3d
jne 0x409fbb
jmp 0x44f6a5
push 0x4a
lea ecx, [ebp - 0x1c]
call fcn.0040a5fb
inc edi
mov dword [ebp - 8], edi
cmp word [ebx + edi*2], 0x3d
jne 0x409fbb
jmp 0x44f69e
inc edi
mov dword [ebp - 8], edi
cmp word [ebx + edi*2], 0x3d
je 0x40a34f
mov eax, 0x42
jmp 0x40a150
movzx eax, word [ebx + edi*2 + 2]
inc edi
mov dword [ebp - 8], edi
sub eax, 0x3d
je 0x40a3ef
sub eax, 1
je 0x40a35d
mov eax, 0x43
jmp 0x40a150
mov ax, word [ebp - 0x14]
cmp ax, 5
jne 0x44f68f
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
neg ecx
mov edi, dword [ebp - 8]
mov dword [ebp - 0x1c], ecx
adc eax, 0
mov ecx, dword [ebp + 0x10]
neg eax
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + ecx*4 - 4]
mov ecx, 0x49
mov word [eax + 8], cx
jmp 0x409fbb
mov eax, 0x45
inc edi
mov dword [ebp - 8], edi
jmp 0x40a150
inc edi
mov eax, 0x44
mov dword [ebp - 8], edi
jmp 0x40a150
mov edi, dword [ebp - 8]
cmp esi, 0x2e
jne 0x409f09
inc edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 8], edi
call fcn.0040a6c3
movzx eax, word [ebx + edi*2]
cmp ax, 0x5a
jbe 0x40a3a5
cmp ax, 0x61
jb 0x40a3ad
cmp ax, 0x7a
ja 0x40a3ad
push eax
lea ecx, [ebp - 0x2c]
call fcn.004049bd
inc edi
jmp 0x40a383
cmp ax, 0x41
jae 0x40a399
jmp 0x40a38d
cmp ax, 0x30
jae 0x40a3fd
cmp ax, 0x5f
je 0x40a399
cmp ax, 0x7f
ja 0x40a399
cmp dword [ebp - 0x28], 0
mov dword [ebp - 8], edi
je 0x40a405
push 0x35
lea ecx, [ebp - 0x1c]
call fcn.0040a5fb
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040a673
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.0040a4a1
jmp 0x409fc7
inc edi
mov eax, 0x46
mov dword [ebp - 8], edi
jmp 0x40a150
cmp ax, 0x39
jbe 0x40a399
jmp 0x40a3b3
lea eax, [edi - 1]
push eax
jmp 0x44f7eb
pop ecx
movzx ecx, word [ebx + 8]
mov eax, ecx
mov word [edi + 8], cx
mov cx, word [ebx + 0xa]
mov word [edi + 0xa], cx
cmp ax, 0x3f
jle 0x40a501
cmp ax, 0x10
je 0x44f800
cmp ax, 0x20
je 0x40a57e
mov eax, dword [ebx]
mov dword [edi], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4], edi
inc dword [esi + 8]
pop edi
pop esi
pop ebx
pop ebp
ret 4
cmp ax, 0x30
jl 0x40a4d6
push 0x10
call fcn.0041fddb
int 0x58
add dword [eax], eax
mov edx, dword [ebx]
pop ecx
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0xc], ecx
inc dword [ecx]
jmp 0x40a4ec
fld qword [ebx]
fstp qword [edi]
jmp 0x40a4ee
invalid
cmp eax, ebx
jne 0x409e92
invalid
jmp fcn.00409e90
cmp eax, 0x10
jne 0x409fd4
jmp 0x40a33a
dec ebp
in al, 0xe8
inc ebp
scasd eax, dword es:[edi]
sti
dec dword [ebx + 0x458d104d]
in al, 0x50
call fcn.0040a4bd
inc edi
mov dword [ebp - 8], edi
jmp 0x409fe3
dec ebp
in al, 0xe8
scasd eax, dword es:[edi]
sti
dec dword [ebx + 0x458d104d]
in al, 0x50
call fcn.0040a4bd
inc edi
mov dword [ebp - 8], edi
jmp 0x409fe3
dec ebp
in al, 0xe8
pop es
scasd eax, dword es:[edi]
sti
dec dword [ebx + 0x458d104d]
in al, 0x50
call fcn.0040a4bd
inc edi
mov dword [ebp - 8], edi
jmp 0x409fe3
mov eax, dword [ebp + 8]
cmp eax, dword [0x4d23a0]
jl 0xecd04ce0
mov word [edx - 0x401374ab], ds
call dword [ebp - 0x75]
in al, dx
mov edi, 0xec8b55ff
push ebp
mov ebp, esp
mov dword [ebp - 8], edi
jmp 0x409fe3
xor ecx, ecx
mov dword [ebp - 0x24], eax
mov edx, 0x66f102
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041fe27
mov esi, eax
invalid
add byte [ecx - 1], dl
jne 0x44f794
push esi
call fcn.00420e3c
std
dec dword [ebx + 0x12eb83c6]
std
dec dword [ebx + 0x12eb83c6]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
jmp 0x40a0b5
invalid
mov dword [eax], eax
jmp 0x44f80c
adc byte [edi + 0x4d8d0001], bl
in al, 0x6a
jg 0x44f7dc
lahf
add dword [eax], eax
lea ecx, [ebp - 0x1c]
push 0x7f
call fcn.0040a617
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push eax
pop ds
scasb al, byte es:[edi]
sti
dec dword [ebx + 0x458d104d]
in al, 0x50
call fcn.0040a4bd
jmp 0x44f814
mov ecx, 0xebfffbac
push cs
push edi
push 0x89138b
jle 0x44f812
and al, 0xe8
ljmp 0xffce
add dword [eax], eax
or esi, 0xffffffff
jmp 0x40a00a