Function at 0x40a7ce
Capabilities:
Parse credit card information

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x34], edi
cmp edx, 0x44
jbe 0x40a7f1
movzx esi, byte [edi + 0x44]
mov ecx, esi
cmp edx, 0x45
jbe 0x40a7f3
movzx eax, byte [edi + 0x45]
jmp 0x40a7f5
xor ecx, ecx
xor eax, eax
shl eax, 8
or eax, ecx
movzx eax, ax
mov dword [esp + 0x28], eax
cmp edx, 0x46
jbe 0x40a817
movzx esi, byte [edi + 0x46]
mov ecx, esi
cmp edx, 0x47
jbe 0x40a819
movzx eax, byte [edi + 0x47]
jmp 0x40a81b
xor ecx, ecx
xor eax, eax
shl eax, 8
or eax, ecx
movzx eax, ax
mov dword [esp + 0x18], eax
movzx eax, ax
mov ebx, eax
mov dword [esp + 0x20], eax
shl ebx, 3
cmp edx, 0x48
jbe 0x40a849
movzx esi, byte [edi + 0x48]
mov ecx, esi
cmp edx, 0x49
jbe 0x40a84b
movzx eax, byte [edi + 0x49]
jmp 0x40a84d
xor ecx, ecx
xor eax, eax
shl eax, 8
or eax, ecx
movzx eax, ax
mov dword [esp + 0x30], eax
movzx eax, ax
mov dword [esp + 0x24], eax
imul eax, eax, 0xf0
add ebx, eax
cmp edx, 0x40
jbe 0x40a87c
movzx ecx, byte [edi + 0x40]
cmp edx, 0x41
jbe 0x40a87e
movzx eax, byte [edi + 0x41]
jmp 0x40a880
xor ecx, ecx
xor eax, eax
shl eax, 8
or eax, ecx
shl eax, 8
add ebx, eax
mov dword [esp + 0x10], ebx
cmp edx, 0x3c
jbe 0x40a8b8
movzx esi, byte [edi + 0x3c]
mov eax, esi
cmp edx, 0x3d
jbe 0x40a8ba
movzx ecx, byte [edi + 0x3d]
mov ebx, ecx
cmp edx, 0x3e
jbe 0x40a8bc
movzx ebp, byte [edi + 0x3e]
cmp edx, 0x3f
jbe 0x40a8be
movzx ecx, byte [edi + 0x3f]
jmp 0x40a8c0
xor eax, eax
xor ebx, ebx
xor ebp, ebp
xor ecx, ecx
shl ecx, 8
or ecx, ebp
shl ecx, 8
or ecx, ebx
shl ecx, 8
or ecx, eax
xor eax, eax
add ecx, 0x3c
cmp ax, word [esp + 0x18]
jae 0x40a9b5
mov eax, dword [esp + 0x28]
movzx ebp, ax
mov dword [esp + 0x2c], ebp
lea eax, [ecx + 5]
cmp eax, edx
jae 0x40a8fa
lea ebx, [ecx + edi]
movzx esi, byte [ebx + 5]
jmp 0x40a8ff
xor esi, esi
lea ebx, [edi + ecx]
lea eax, [ecx + 6]
cmp eax, edx
jae 0x40a90c
movzx eax, byte [ebx + 6]
jmp 0x40a90e
xor eax, eax
shl eax, 8
or eax, esi
imul eax, ebp
imul eax, eax, 5
add dword [esp + 0x10], eax
cmp ecx, edx
jae 0x40a92a
movzx ebp, byte [ebx]
mov dword [esp + 0x1c], ebp
jmp 0x40a92f
and dword [esp + 0x1c], 0
lea eax, [ecx + 1]
cmp eax, edx
jae 0x40a940
movzx ebp, byte [ebx + 1]
mov dword [esp + 0x14], ebp
jmp 0x40a945
and dword [esp + 0x14], 0
lea eax, [ecx + 2]
cmp eax, edx
jae 0x40a956
movzx ebp, byte [ebx + 2]
mov dword [esp + 0x18], ebp
jmp 0x40a95b
and dword [esp + 0x18], 0
lea eax, [ecx + 3]
cmp eax, edx
jae 0x40a968
movzx esi, byte [ebx + 3]
jmp 0x40a96a
xor esi, esi
lea eax, [ecx + 7]
cmp eax, edx
jae 0x40a977
movzx ebp, byte [ebx + 7]
jmp 0x40a979
xor ebp, ebp
lea eax, [ecx + 8]
cmp eax, edx
jae 0x40a986
movzx eax, byte [ebx + 8]
jmp 0x40a988
xor eax, eax
shl esi, 8
or esi, dword [esp + 0x18]
shl esi, 8
or esi, dword [esp + 0x14]
shl eax, 8
or eax, ebp
shl esi, 8
or esi, dword [esp + 0x1c]
add ecx, eax
mov ebp, dword [esp + 0x2c]
add ecx, esi
sub dword [esp + 0x20], 1
jne 0x40a8ea
xor eax, eax
cmp ax, word [esp + 0x30]
jae 0x40ab1a
and dword [esp + 0x18], 0
lea eax, [ecx + 0x1b]
cmp eax, edx
jae 0x40a9d7
lea esi, [ecx + edi]
movzx ebx, byte [esi + 0x1b]
jmp 0x40a9dc
xor ebx, ebx
lea esi, [edi + ecx]
lea eax, [ecx + 0x1c]
cmp eax, edx
jae 0x40a9e9
movzx eax, byte [esi + 0x1c]
jmp 0x40a9eb
xor eax, eax
shl eax, 8
or eax, ebx
movzx eax, ax
mov dword [esp + 0x30], eax
movzx eax, ax
mov dword [esp + 0x1c], eax
imul eax, eax, 0x38
add dword [esp + 0x10], eax
cmp ecx, edx
jae 0x40aa12
movzx ebx, byte [esi]
mov dword [esp + 0x20], ebx
jmp 0x40aa17
and dword [esp + 0x20], 0
lea eax, [ecx + 1]
cmp eax, edx
jae 0x40aa24
movzx ebp, byte [esi + 1]
jmp 0x40aa26
xor ebp, ebp
lea eax, [ecx + 2]
cmp eax, edx
jae 0x40aa33
movzx ebx, byte [esi + 2]
jmp 0x40aa35
xor ebx, ebx
lea eax, [ecx + 3]
cmp eax, edx
jae 0x40aa42
movzx eax, byte [esi + 3]
jmp 0x40aa44
xor eax, eax
shl eax, 8
or eax, ebx
shl eax, 8
or eax, ebp
shl eax, 8
or eax, dword [esp + 0x20]
je 0x40aa5e
cmp eax, 0x107
jbe 0x40aa63
mov eax, 0x107
add ecx, eax
xor eax, eax
cmp ax, word [esp + 0x30]
jae 0x40ab0b
mov eax, edi
lea esi, [edi + 2]
not eax
lea ebx, [ecx + 2]
mov dword [esp + 0x30], eax
add esi, ecx
xor eax, eax
mov dword [esp + 0x14], ebx
inc eax
sub eax, edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
cmp ecx, edx
jae 0x40aaa5
movzx ebx, byte [esi - 2]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x14]
jmp 0x40aaaa
and dword [esp + 0x20], 0
lea eax, [esi + edi]
cmp eax, edx
jae 0x40aab7
movzx ebp, byte [esi - 1]
jmp 0x40aab9
xor ebp, ebp
cmp ebx, edx
jae 0x40aac2
movzx ebx, byte [esi]
jmp 0x40aac4
xor ebx, ebx
mov eax, dword [esp + 0x2c]
add eax, esi
cmp eax, edx
jae 0x40aad4
movzx eax, byte [esi + 1]
jmp 0x40aad6
xor eax, eax
shl eax, 8
add ecx, 0x28
or eax, ebx
add esi, 0x28
mov ebx, dword [esp + 0x14]
shl eax, 8
add ebx, 0x28
or eax, ebp
mov dword [esp + 0x14], ebx
shl eax, 8
or eax, dword [esp + 0x20]
add dword [esp + 0x18], eax
add dword [esp + 0x10], eax
sub dword [esp + 0x1c], 1
jne 0x40aa93
mov edi, dword [esp + 0x34]
add ecx, dword [esp + 0x18]
sub dword [esp + 0x24], 1
jne 0x40a9c2
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
movzx eax, ax
add ecx, 0x158
pop edi
imul eax, eax, 0x120
pop esi
pop ebp
pop ebx
add eax, ecx
add esp, 0x28
ret