Function at 0x610f4ed0
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 8], esi
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], edi
test eax, eax
mov dword [ebp - 0xc], ebx
mov edi, dword [ebp + 0x14]
je 0x610f5065
test esi, esi
mov ecx, 0xfffffffe
setne al
xor edx, edx
test edi, edi
sete dl
test eax, edx
jne 0x610f4f2e
mov dword [esp], 0x611011d0
call sym.cygwin1.dll__strlen
cmp eax, 1
ja 0x610f4f40
xor ecx, ecx
test esi, esi
je 0x610f4f2e
movzx ax, byte [esi]
mov ecx, dword [ebp + 0xc]
mov word [ecx], ax
xor ecx, ecx
cmp byte [esi], 0
setne cl
mov ebx, dword [ebp - 0xc]
mov eax, ecx
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], 0x611011d0
mov ebx, str.C_UTF_8
mov dword [esp + 4], ebx
call sym.cygwin1.dll__strcmp
test eax, eax
jne 0x610f4f9a
mov dword [ebp - 0x20], 0
xor ecx, ecx
test esi, esi
je 0x610f4f2e
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
test edx, edx
jne 0x610f50ec
movzx ebx, byte [esi]
mov dword [ebp - 0x20], 1
test ebx, ebx
jne 0x610f5070
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
mov dword [ecx], 0
xor ecx, ecx
mov word [edx], 0
jmp 0x610f4f2e
mov dword [esp], 0x611011d0
mov ecx, 0x6113b8a8
mov dword [esp + 4], ecx
call sym.cygwin1.dll__strcmp
test eax, eax
jne 0x610f5112
xor ecx, ecx
test esi, esi
je 0x610f4f2e
movzx ebx, byte [esi]
mov dword [ebp - 0x3c], 1
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
test edx, edx
jne 0x610f501d
lea eax, [ebx - 0x81]
cmp eax, 0x1e
lea eax, [ebx - 0xe0]
setbe dl
cmp eax, 0xf
setbe al
or eax, edx
test al, 1
je 0x610f4f16
mov byte [ecx + 4], bl
cmp edi, 1
mov dword [ecx], 1
mov ecx, 0xfffffffe
jbe 0x610f4f2e
movzx ebx, byte [esi + 1]
mov edx, 1
mov dword [ebp - 0x3c], 2
dec edx
jne 0x610f4f16
lea eax, [ebx - 0x40]
mov ecx, 0xffffffff
cmp eax, 0x3e
lea eax, [ebx - 0x80]
setbe dl
cmp eax, 0x7c
setbe al
or eax, edx
test al, 1
je 0x610f4f2e
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
movzx eax, byte [edx + 4]
mov dword [edx], 0
shl eax, 8
add eax, ebx
mov word [ecx], ax
mov ecx, dword [ebp - 0x3c]
jmp 0x610f4f2e
lea eax, [ebp - 0x1a]
mov dword [ebp + 0xc], eax
jmp 0x610f4ef0
cmp ebx, 0x7f
jbe 0x610f50f9
lea eax, [ebx - 0xc0]
cmp eax, 0x1f
ja 0x610f51c0
mov ecx, dword [ebp + 0x18]
cmp edi, 1
mov byte [ecx + 4], bl
mov dword [ecx], 1
mov ecx, 0xfffffffe
jbe 0x610f4f2e
mov eax, dword [ebp - 0x20]
mov ecx, 0xffffffff
movzx ebx, byte [eax + esi]
inc eax
mov dword [ebp - 0x20], eax
lea eax, [ebx - 0x80]
cmp eax, 0x3f
ja 0x610f4f2e
mov edx, dword [ebp + 0x18]
movzx eax, byte [edx + 4]
cmp al, 0xc1
jbe 0x610f4f2e
mov dword [edx], 0
mov ecx, dword [ebp + 0xc]
and eax, 0x1f
shl eax, 6
and ebx, 0x3f
or eax, ebx
mov word [ecx], ax
mov ecx, dword [ebp - 0x20]
jmp 0x610f4f2e
mov eax, dword [ebp + 0x18]
inc edi
movzx ebx, byte [eax + 4]
jmp 0x610f4f7d
mov eax, dword [ebp + 0x18]
mov ecx, 1
mov edx, dword [ebp + 0xc]
mov dword [eax], 0
mov word [edx], bx
jmp 0x610f4f2e
mov dword [esp], 0x611011d0
mov edx, 0x6113b8af
mov dword [esp + 4], edx
call sym.cygwin1.dll__strcmp
test eax, eax
jne 0x610f52c3
xor ecx, ecx
test esi, esi
je 0x610f4f2e
movzx ebx, byte [esi]
mov dword [ebp - 0x40], 1
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
test edx, edx
jne 0x610f5185
lea eax, [ebx - 0xa1]
cmp eax, 0x5d
ja 0x610f4f16
mov edx, dword [ebp + 0x18]
cmp edi, 1
mov ecx, 0xfffffffe
mov byte [edx + 4], bl
mov dword [edx], 1
jbe 0x610f4f2e
movzx ebx, byte [esi + 1]
mov edx, 1
mov dword [ebp - 0x40], 2
dec edx
jne 0x610f4f16
lea eax, [ebx - 0xa1]
mov ecx, 0xffffffff
cmp eax, 0x5d
ja 0x610f4f2e
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
movzx eax, byte [ecx + 4]
mov dword [ecx], 0
mov ecx, dword [ebp - 0x40]
shl eax, 8
add eax, ebx
mov word [edx], ax
jmp 0x610f4f2e
lea eax, [ebx - 0xe0]
cmp eax, 0xf
ja case.default.0x610f5352
mov eax, dword [ebp + 0x18]
test edx, edx
mov byte [eax + 4], bl
jne 0x610f53c2
mov dword [eax], 1
cmp edi, 1
mov ecx, 0xfffffffe
jbe 0x610f4f2e
mov edx, dword [ebp + 0x18]
cmp dword [edx], 1
je 0x610f53c8
mov eax, dword [ebp + 0x18]
movzx ebx, byte [eax + 5]
mov edx, dword [ebp + 0x18]
mov ecx, 0xffffffff
movzx edx, byte [edx + 4]
cmp dl, 0xe0
sete al
mov byte [ebp - 0x38], dl
xor edx, edx
cmp ebx, 0x9f
setle dl
test eax, edx
jne 0x610f4f2e
lea eax, [ebx - 0x80]
cmp eax, 0x3f
ja 0x610f4f2e
mov ecx, dword [ebp + 0x18]
cmp edi, 2
mov byte [ecx + 5], bl
mov dword [ecx], 2
mov ecx, 0xfffffffe
jbe 0x610f4f2e
mov eax, dword [ebp - 0x20]
mov ecx, 0xffffffff
movzx ebx, byte [eax + esi]
inc eax
mov dword [ebp - 0x20], eax
lea eax, [ebx - 0x80]
cmp eax, 0x3f
ja 0x610f4f2e
mov edx, dword [ebp + 0x18]
and ebx, 0x3f
mov ecx, dword [ebp + 0x18]
mov dword [edx], 0
movzx ax, byte [ecx + 5]
mov ecx, 0xffffffff
movzx edx, byte [ebp - 0x38]
and eax, 0x3f
shl eax, 6
and edx, 0xf
shl edx, 0xc
or edx, eax
or edx, ebx
lea eax, [edx + 0x2800]
cmp ax, 0x7ff
jbe 0x610f4f2e
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
mov word [eax], dx
jmp 0x610f4f2e
mov ecx, 0xffffffff
jmp 0x610f4f2e
mov dword [esp], 0x611011d0
mov eax, 0x6113b8b7
mov dword [esp + 4], eax
call sym.cygwin1.dll__strcmp
test eax, eax
jne 0x610f4f16
test esi, esi
je 0x610f5403
mov dword [ebp - 0x44], esi
mov eax, dword [ebp + 0x18]
xor ebx, ebx
movzx ecx, byte [eax]
cmp ebx, edi
jae 0x610f5416
movzx edx, byte [esi + ebx]
movzx eax, dl
cmp eax, 0x28
mov byte [ebp - 0x45], dl
mov dl, 2
je 0x610f5330
jg 0x610f53d8
xor edx, edx
cmp eax, 0x1b
je 0x610f5330
jg 0x610f53ef
mov dl, 6
test eax, eax
je 0x610f5330
sub eax, 0x21
cmp eax, 0x5e
sbb edx, edx
add dl, 8
movzx eax, cl
movzx edx, dl
lea eax, [eax + eax*8]
add eax, edx
movzx ecx, byte [eax + 0x61101550]
movzx eax, byte [eax + 0x611015b0]
cmp eax, 5
ja case.default.0x610f5352
jmp dword [eax*4 + 0x6113b8c0]
lea eax, [esi + ebx + 1]
mov dword [ebp - 0x44], eax
inc ebx
jmp 0x610f52f3
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 1
movzx eax, byte [ecx + 4]
movzx dx, byte [esi + ebx]
shl eax, 8
add eax, edx
mov edx, dword [ebp + 0xc]
lea ecx, [ebx + 1]
mov word [edx], ax
jmp 0x610f4f2e
movzx eax, byte [ebp - 0x45]
inc ebx
mov edx, dword [ebp + 0x18]
mov byte [edx + 4], al
jmp 0x610f52f3
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x44]
mov dword [edx], 0
movzx ax, byte [ecx]
jmp 0x610f537a
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
mov dword [ecx], 0
xor ecx, ecx
mov word [eax], 0
jmp 0x610f4f2e
inc edi
jmp 0x610f51e3
mov ecx, dword [ebp - 0x20]
movzx ebx, byte [ecx + esi]
inc ecx
mov dword [ebp - 0x20], ecx
jmp 0x610f5204
cmp eax, 0x42
mov dl, 4
je 0x610f5330
jg 0x610f53f9
mov dl, 3
cmp eax, 0x40
jmp 0x610f5323
mov dl, 1
cmp eax, 0x24
jmp 0x610f5323
mov dl, 5
cmp eax, 0x4a
jmp 0x610f5323
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0
mov ecx, 1
jmp 0x610f4f2e
mov edx, dword [ebp + 0x18]
movzx eax, cl
mov ecx, 0xfffffffe
mov dword [edx], eax
jmp 0x610f4f2e