Function at 0x40be20
Capabilities:
Parse credit card information

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
add dword [0x4c610c], 1
mov dword [esp + 0x48], edx
movzx edx, byte [eax]
test dl, dl
je 0x40be6f
cmp dl, 0x28
mov ebx, eax
jne 0x40be4a
jmp 0x40c19d
cmp dl, 0x28
je 0x40be84
movzx ecx, dl
test byte [ecx + ecx + 0x4bdf60], 0x8c
jne 0x40be65
cmp dl, 0x2d
je 0x40be65
cmp dl, 0x5f
jne 0x40c1a4
add ebx, 1
movzx edx, byte [ebx]
test dl, dl
jne 0x40be45
mov eax, dword [0x4c7b9c]
mov dword [esp + 4], str.no_arguments_for_spec_function
mov dword [esp], eax
call fcn.00422700
mov edx, ebx
sub edx, eax
call fcn.00401550
movzx edx, byte [ebx + 1]
mov edi, eax
lea eax, [ebx + 1]
test dl, dl
je 0x40becb
mov ebx, eax
xor ecx, ecx
jmp 0x40beb5
cmp dl, 0x28
sete dl
add ebx, 1
movzx edx, dl
add ecx, edx
movzx edx, byte [ebx]
test dl, dl
je 0x40becb
cmp dl, 0x29
jne 0x40bea0
test ecx, ecx
je 0x40bee0
add ebx, 1
movzx edx, byte [ebx]
sub ecx, 1
test dl, dl
jne 0x40beb5
mov eax, dword [0x4c7b9c]
mov dword [esp + 4], str.malformed_spec_function_arguments
mov dword [esp], eax
call fcn.00422700
mov edx, ebx
sub edx, eax
call fcn.00401550
mov dword [esp + 0x1c], eax
lea eax, [ebx + 1]
mov ebx, 0x47c900
mov dword [esp + 0x18], eax
mov eax, str.getenv
jmp 0x40bf0d
add ebx, 8
mov eax, dword [ebx]
test eax, eax
je 0x40c130
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x40bf00
mov dword [esp + 0x20], eax
mov eax, dword [0x4c6108]
mov edx, dword [0x4c61ec]
mov dword [esp + 0x28], eax
mov eax, dword [0x4c6080]
mov ebp, edx
mov dword [esp + 0x2c], eax
mov eax, dword [0x4c607c]
mov dword [esp + 0x30], eax
mov eax, dword [0x4c6078]
mov dword [esp + 0x34], eax
mov eax, dword [0x4c6074]
mov dword [esp + 0x38], eax
mov eax, dword [0x4c6070]
mov dword [esp + 0x3c], eax
mov eax, dword [0x4c606c]
mov dword [esp + 0x40], eax
mov eax, dword [0x4c6068]
mov dword [esp + 0x44], eax
mov eax, dword [0x4c61e8]
sub ebp, eax
mov dword [esp + 0x24], eax
test ebp, ebp
jle 0x40c160
cmp edx, dword [esp + 0x24]
je 0x40c191
mov ecx, dword [0x4c61f8]
mov esi, dword [0x4c61f0]
mov eax, ecx
add edx, ecx
mov dword [esp + 0x4c], esi
not eax
and eax, edx
mov edx, dword [0x4c61e4]
mov ecx, eax
mov dword [0x4c61ec], eax
sub ecx, edx
sub esi, edx
cmp ecx, esi
jle 0x40bfc4
mov eax, dword [esp + 0x4c]
mov dword [0x4c61ec], eax
mov dword [0x4c61e8], eax
mov dword [esp + 4], 0x30
mov dword [esp], 0
mov dword [0x4c6108], 0
call fcn.004444f0
mov edx, dword [eax]
mov dword [0x4c6108], eax
mov dword [eax + 4], 0
and edx, 0x80000000
or edx, 0xa
mov dword [eax], edx
mov byte [eax + 3], 0
mov eax, dword [esp + 0x1c]
call fcn.0040bb10
test eax, eax
js 0x40c1b9
mov eax, dword [0x4c6108]
mov edx, dword [ebx + 4]
test eax, eax
je 0x40c18a
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], ecx
mov dword [esp], eax
call edx
mov ebx, eax
mov eax, dword [0x4c6108]
test eax, eax
je 0x40c059
cmp byte [eax + 3], 0
js 0x40c150
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x28]
test ebp, ebp
mov dword [0x4c6108], eax
mov eax, dword [esp + 0x2c]
mov dword [0x4c6080], eax
mov eax, dword [esp + 0x30]
mov dword [0x4c607c], eax
mov eax, dword [esp + 0x34]
mov dword [0x4c6078], eax
mov eax, dword [esp + 0x38]
mov dword [0x4c6074], eax
mov eax, dword [esp + 0x3c]
mov dword [0x4c6070], eax
mov eax, dword [esp + 0x40]
mov dword [0x4c606c], eax
mov eax, dword [esp + 0x44]
mov dword [0x4c6068], eax
jle 0x40c0d3
mov eax, dword [0x4c61ec]
lea edx, [eax + ebp]
cmp dword [0x4c61f0], edx
jb 0x40c170
mov esi, dword [esp + 0x24]
mov dword [esp + 8], ebp
mov dword [esp], eax
mov dword [esp + 4], esi
call sub.msvcrt.dll_memcpy
add dword [0x4c61ec], ebp
test ebx, ebx
je 0x40c0f2
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.0040a1e0
test eax, eax
mov eax, 0
cmovns eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x40c0ff
test ebx, ebx
setne byte [eax]
mov dword [esp], edi
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x18]
sub dword [0x4c610c], 1
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x4c7b9c]
mov dword [esp + 8], edi
mov dword [esp + 4], str.unknown_spec_function__qs
mov dword [esp], eax
call fcn.00422700
lea esi, [esi]
mov dword [eax + 4], 0
jmp 0x40c059
mov dword [esp + 0x24], 0
jmp 0x40bfc9
mov dword [esp + 4], ebp
mov dword [esp], 0x4c61e0
call fcn.00444930
mov eax, dword [0x4c61ec]
jmp 0x40c0b9
xor ecx, ecx
jmp 0x40c02f
or byte [0x4c6208], 2
jmp 0x40bf8e
xor edx, edx
jmp 0x40be88
mov eax, dword [0x4c7b9c]
mov dword [esp + 4], str.malformed_spec_function_name
mov dword [esp], eax
call fcn.00422700
mov eax, dword [0x4c7b9c]
mov dword [esp + 8], edi
mov dword [esp + 4], str.error_in_args_to_spec_function__qs
mov dword [esp], eax
call fcn.00422700
lea esi, [esi]
lea edi, [edi]