Function at 0x40c2f0
Capabilities:
Parse credit card information

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov dword [esp + 0x24], edx
movzx edx, byte [eax]
add dword [0x4d7118], 1
test dl, dl
je 0x40c33a
cmp dl, 0x28
mov ebx, eax
jne 0x40c31a
jmp 0x40c65b
cmp dl, 0x28
je 0x40c350
movzx ecx, dl
test byte [ecx + ecx + 0x4d06e0], 0x8c
jne 0x40c330
cmp dl, 0x2d
jne 0x40c662
add ebx, 1
movzx edx, byte [ebx]
test dl, dl
jne 0x40c315
mov eax, dword [0x4d9188]
mov dword [esp + 4], str.no_arguments_for_spec_function
mov dword [esp], eax
call fcn.00426060
nop
mov edx, ebx
sub edx, eax
call fcn.004015c0
movzx edx, byte [ebx + 1]
test dl, dl
mov edi, eax
lea eax, [ebx + 1]
je 0x40c39b
mov ebx, eax
xor ecx, ecx
jmp 0x40c385
cmp dl, 0x28
sete dl
add ebx, 1
movzx edx, dl
add ecx, edx
movzx edx, byte [ebx]
test dl, dl
je 0x40c39b
cmp dl, 0x29
jne 0x40c370
test ecx, ecx
je 0x40c3b0
add ebx, 1
movzx edx, byte [ebx]
sub ecx, 1
test dl, dl
jne 0x40c385
mov eax, dword [0x4d9188]
mov dword [esp + 4], str.malformed_spec_function_arguments
mov dword [esp], eax
call fcn.00426060
mov edx, ebx
sub edx, eax
call fcn.004015c0
mov dword [esp + 0x1c], eax
lea eax, [ebx + 1]
mov ebx, 0x48c420
mov dword [esp + 0x18], eax
mov eax, str.getenv
jmp 0x40c3dd
add ebx, 8
mov eax, dword [ebx]
test eax, eax
je 0x40c5f6
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x40c3d0
mov esi, eax
mov eax, dword [0x4d7114]
mov ecx, dword [0x4d7208]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x28], eax
mov eax, dword [0x4d7080]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], eax
mov eax, dword [0x4d707c]
mov dword [esp + 0x30], eax
mov eax, dword [0x4d7078]
mov dword [esp + 0x34], eax
mov eax, dword [0x4d7074]
mov dword [esp + 0x38], eax
mov eax, dword [0x4d7070]
mov dword [esp + 0x3c], eax
mov eax, dword [0x4d706c]
mov dword [esp + 0x40], eax
mov eax, dword [0x4d7068]
mov dword [esp + 0x44], eax
mov eax, dword [0x4d720c]
mov ebp, eax
sub ebp, ecx
test ebp, ebp
jle 0x40c642
cmp eax, dword [esp + 0x20]
je 0x40c64f
mov edx, dword [0x4d7218]
mov ecx, dword [0x4d7210]
add eax, edx
not edx
and eax, edx
mov edx, dword [0x4d7204]
mov ebx, eax
mov dword [0x4d720c], eax
sub ebx, edx
mov dword [esp + 0x4c], ebx
mov ebx, ecx
sub ebx, edx
cmp dword [esp + 0x4c], ebx
jbe 0x40c497
mov dword [0x4d720c], ecx
mov eax, ecx
mov dword [0x4d7208], eax
mov dword [esp + 4], 0x30
mov dword [esp], 0
mov dword [0x4d7114], 0
call fcn.00453530
mov edx, dword [eax]
mov dword [0x4d7114], 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.0040bff0
test eax, eax
js 0x40c680
mov eax, dword [esp + 0x48]
mov edx, dword [eax + 4]
mov eax, dword [0x4d7114]
test eax, eax
je 0x40c63b
mov esi, dword [eax + 4]
lea ecx, [eax + 8]
mov dword [esp + 4], ecx
mov dword [esp], esi
call edx
mov ebx, eax
mov eax, dword [0x4d7114]
test eax, eax
je 0x40c528
cmp byte [eax + 3], 0
js 0x40c610
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x28]
test ebp, ebp
mov dword [0x4d7114], eax
mov eax, dword [esp + 0x2c]
mov dword [0x4d7080], eax
mov eax, dword [esp + 0x30]
mov dword [0x4d707c], eax
mov eax, dword [esp + 0x34]
mov dword [0x4d7078], eax
mov eax, dword [esp + 0x38]
mov dword [0x4d7074], eax
mov eax, dword [esp + 0x3c]
mov dword [0x4d7070], eax
mov eax, dword [esp + 0x40]
mov dword [0x4d706c], eax
mov eax, dword [esp + 0x44]
mov dword [0x4d7068], eax
jle 0x40c5a3
mov edx, dword [0x4d720c]
mov eax, dword [0x4d7210]
sub eax, edx
cmp ebp, eax
ja 0x40c620
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebp
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
add dword [0x4d720c], ebp
test ebx, ebx
je 0x40c5c2
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.0040a640
test eax, eax
mov eax, 0
cmovns eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40c5cf
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 [0x4d7118], 1
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x4d9188]
mov dword [esp + 8], edi
mov dword [esp + 4], str.unknown_spec_function__qs
mov dword [esp], eax
call fcn.00426060
nop
mov dword [eax + 4], 0
jmp 0x40c528
mov dword [esp + 4], ebp
mov dword [esp], 0x4d7200
call fcn.004598c0
mov edx, dword [0x4d720c]
jmp 0x40c589
xor ecx, ecx
jmp 0x40c502
mov dword [esp + 0x20], 0
jmp 0x40c49c
or byte [0x4d7228], 2
jmp 0x40c460
xor edx, edx
jmp 0x40c354
cmp dl, 0x5f
je 0x40c330
mov eax, dword [0x4d9188]
mov dword [esp + 4], str.malformed_spec_function_name
mov dword [esp], eax
call fcn.00426060
mov eax, dword [0x4d9188]
mov dword [esp + 8], edi
mov dword [esp + 4], str.error_in_args_to_spec_function__qs
mov dword [esp], eax
call fcn.00426060
lea esi, [esi]