Function at 0x40d1c0
Capabilities:
Parse credit card information
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [ebp - 0x34], eax
movzx eax, byte [ebp + 0xc]
mov dword [esp], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x40], ecx
mov byte [ebp - 0x44], al
mov dword [ebp - 0x1c], 0
call sub.cygwin1.dll_strlen
mov edx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x2c]
add ebx, 1
mov dword [ebp - 0x38], eax
movzx eax, byte [edx + 1]
test al, al
je 0x40d2c5
lea ecx, [ebp - 0x1c]
mov edi, ebx
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x34]
xor edx, edx
sub ecx, 0x3f
mov dword [ebp - 0x3c], ecx
cmp al, 0x5b
je 0x40d2f5
cmp al, 0x2a
je 0x40d2d2
cmp al, 0x3f
je 0x40d2d2
cmp al, 0x2b
lea esi, [esi]
je 0x40d2d2
cmp al, 0x40
je 0x40d2d2
cmp al, 0x21
je 0x40d2d2
cmp al, 0x29
je 0x40d334
cmp al, 0x7c
jne 0x40d2f0
test edx, edx
jne 0x40d2f0
cmp dword [ebp - 0x3c], 1
mov eax, dword [ebp - 0x38]
jbe 0x40d26e
mov eax, ebx
sub eax, edi
add eax, 1
cmp eax, 0x1f3b
ja 0x40d2c5
add eax, 0x22
and eax, 0xfffffff0
call fcn.00413220
mov eax, ebx
lea esi, [esp + 0x1f]
sub eax, edi
and esi, 0xfffffff0
mov dword [esp + 8], eax
lea eax, [esi + 4]
mov dword [esp + 4], edi
lea edi, [ebx + 1]
mov dword [ebp - 0x48], edx
mov ebx, edi
mov dword [esp], eax
call sub.cygwin1.dll_mempcpy
mov byte [eax], 0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x48]
mov dword [esi], 0
mov dword [ecx], esi
mov dword [ebp - 0x30], esi
movzx eax, byte [ebx]
test al, al
jne 0x40d213
mov eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp byte [ebx + 1], 0x28
lea ecx, [ebx + 1]
jne 0x40d246
add edx, 1
mov ebx, ecx
mov eax, 0x28
jmp 0x40d21b
add ebx, 1
jmp 0x40d2ba
mov esi, dword [0x41a7f0]
test esi, esi
je 0x40d358
movzx ecx, byte [ebx + 1]
lea eax, [ebx + 1]
cmp cl, 0x21
je 0x40d350
mov ebx, dword [0x41a7f0]
test ebx, ebx
js 0x40d345
cmp cl, 0x5d
jne 0x40d32e
lea esi, [esi]
add eax, 1
movzx ecx, byte [eax]
lea ebx, [eax + 1]
cmp cl, 0x5d
je 0x40d2ba
test cl, cl
jne 0x40d320
jmp 0x40d2c5
test edx, edx
je 0x40d379
sub edx, 1
add ebx, 1
nop
jmp 0x40d2ba
cmp cl, 0x5e
jne 0x40d315
lea esi, [esi]
add eax, 1
movzx ecx, byte [eax]
jmp 0x40d315
mov dword [ebp - 0x48], edx
mov dword [esp], str.POSIXLY_CORRECT
call sub.cygwin1.dll_getenv
mov edx, dword [ebp - 0x48]
cmp eax, 1
sbb eax, eax
or eax, 1
mov dword [0x41a7f0], eax
jmp 0x40d2ff
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
sub eax, 0x3f
cmp eax, 1
jbe 0x40d38e
mov edx, ebx
sub edx, edi
add edx, 1
cmp edx, 0x1f3b
mov eax, 0xffffffff
ja 0x40d2ca
lea eax, [edx + 0x22]
and eax, 0xfffffff0
call fcn.00413220
lea esi, [esp + 0x1f]
mov eax, ebx
and esi, 0xfffffff0
sub eax, edi
mov dword [esp + 8], eax
lea eax, [esi + 4]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.cygwin1.dll_mempcpy
mov byte [eax], 0
mov eax, dword [ebp - 0x30]
mov dword [esi], 0
mov dword [eax], esi
mov edx, dword [ebp - 0x1c]
test edx, edx
mov esi, edx
mov dword [ebp - 0x38], edx
je 0x40d6de
cmp byte [ebx - 1], 0x29
jne 0x40d6ba
mov eax, dword [ebp - 0x34]
sub eax, 0x21
cmp eax, 0x1f
jbe switch.0x0040d41f
mov dword [esp + 0xc], str.___Invalid_extended_matching_operator_
mov dword [esp + 8], str.ext_match
mov dword [esp + 4], 0x4b0
mov dword [esp], str._usr_src_coreutils_8.15_1_src_coreutils_8.15_lib_fnmatch_loop.c
call sub.cygwin1.dll___assert_func
jmp dword [eax*4 + 0x417c94]
mov ecx, dword [ebp + 0x10]
movzx eax, byte [ebp - 0x44]
mov edx, dword [ebp - 0x40]
mov dword [esp + 4], ecx
mov ecx, dword [ebp + 8]
mov dword [esp], eax
mov eax, ebx
call fcn.0040d710
mov edx, eax
xor eax, eax
test edx, edx
je 0x40d2ca
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
movzx edx, byte [ebp - 0x44]
and eax, 1
and ecx, 0xfffffffb
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], ecx
mov edi, dword [ebp - 0x2c]
lea eax, [esi + 4]
mov dword [esp + 4], ebx
mov dword [esp], eax
test edi, edi
mov edi, dword [ebp + 0x10]
cmove edi, dword [ebp - 0x34]
call sub.cygwin1.dll_strcat
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
mov dword [esp + 4], edi
mov dword [esp], edx
mov edx, dword [ebp - 0x40]
call fcn.0040d710
test eax, eax
je 0x40d68b
mov esi, dword [esi]
test esi, esi
mov dword [ebp - 0x1c], esi
jne 0x40d466
mov eax, 1
jmp 0x40d2ca
mov ecx, dword [ebp + 0x10]
movzx eax, byte [ebp - 0x44]
mov edx, dword [ebp - 0x40]
mov dword [esp + 4], ecx
mov ecx, dword [ebp + 8]
mov dword [esp], eax
mov eax, ebx
call fcn.0040d710
mov edx, eax
xor eax, eax
test edx, edx
je 0x40d2ca
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp + 0x10]
movzx edx, byte [ebp - 0x44]
and eax, 0xfffffffb
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
sub ecx, 1
and edi, 1
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], ecx
and eax, 5
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
jmp 0x40d567
mov ecx, dword [ebp + 8]
mov dword [esp + 4], edx
mov edx, esi
mov dword [esp], eax
mov eax, ebx
call fcn.0040d710
test eax, eax
je 0x40d68b
cmp esi, dword [ebp - 0x40]
je 0x40d561
mov edx, dword [ebp + 0x10]
test edi, edi
cmove edx, dword [ebp - 0x30]
xor eax, eax
cmp byte [esi - 1], 0x2f
je 0x40d63d
mov dword [esp], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], edx
mov edx, esi
call fcn.0040d710
test eax, eax
je 0x40d68b
mov eax, dword [ebp - 0x1c]
add esi, 1
cmp esi, dword [ebp + 8]
ja 0x40d692
mov edx, dword [ebp + 0x10]
test edi, edi
mov ecx, esi
cmove edx, dword [ebp - 0x30]
add eax, 4
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x34]
mov dword [esp], edx
mov edx, dword [ebp - 0x40]
call fcn.0040d710
test eax, eax
jne 0x40d561
mov edx, dword [ebp + 0x10]
test edi, edi
cmove edx, dword [ebp - 0x30]
cmp esi, dword [ebp - 0x40]
je 0x40d64b
xor eax, eax
cmp byte [esi - 1], 0x2f
jne 0x40d510
xor eax, eax
cmp dword [ebp - 0x3c], 5
sete al
jmp 0x40d510
mov edx, dword [ebp + 8]
mov eax, 1
cmp dword [ebp - 0x40], edx
ja 0x40d2ca
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x10]
movzx edi, byte [ebp - 0x44]
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x40]
and eax, 0xfffffffb
and edx, 5
mov dword [ebp - 0x30], eax
and esi, 1
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x44], ebx
mov ebx, dword [ebp - 0x38]
jmp 0x40d606
mov ebx, dword [ebx]
test ebx, ebx
je 0x40d653
mov edx, dword [ebp + 0x10]
test esi, esi
cmove edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
lea eax, [ebx + 4]
mov dword [esp], edi
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x40]
call fcn.0040d710
test eax, eax
jne 0x40d600
test ebx, ebx
je 0x40d653
add dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x2c]
cmp dword [ebp + 8], eax
jae 0x40d5f9
jmp 0x40d4a7
xor eax, eax
cmp dword [ebp - 0x3c], 5
sete al
jmp 0x40d545
mov eax, dword [ebp - 0x34]
jmp 0x40d510
mov edx, dword [ebp + 0x10]
test esi, esi
mov ecx, dword [ebp - 0x40]
cmove edx, dword [ebp - 0x30]
cmp dword [ebp - 0x2c], ecx
je 0x40d6ae
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp byte [ecx - 1], 0x2f
je 0x40d6a3
movzx eax, al
mov dword [esp + 4], edx
mov ecx, dword [ebp + 8]
mov dword [esp], eax
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x44]
call fcn.0040d710
test eax, eax
jne 0x40d62c
xor eax, eax
jmp 0x40d2ca
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x40d6b3
mov esi, dword [ebp - 0x40]
jmp 0x40d567
xor eax, eax
cmp dword [ebp - 0x34], 5
sete al
jmp 0x40d66f
mov eax, dword [ebp - 0x3c]
jmp 0x40d672
mov al, 1
jmp 0x40d2ca
mov dword [esp + 0xc], str.p__1___L____
mov dword [esp + 8], str.ext_match
mov dword [esp + 4], 0x456
mov dword [esp], str._usr_src_coreutils_8.15_1_src_coreutils_8.15_lib_fnmatch_loop.c
call sub.cygwin1.dll___assert_func
mov dword [esp + 0xc], str.list___NULL
mov dword [esp + 8], str.ext_match
mov dword [esp + 4], 0x455
mov dword [esp], str._usr_src_coreutils_8.15_1_src_coreutils_8.15_lib_fnmatch_loop.c
call sub.cygwin1.dll___assert_func
lea esi, [esi]
lea edi, [edi]