Function at 0x51a7ea
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0x10]
and dword [ebp - 0x18], 0
push ebx
push esi
mov eax, dword [eax]
push edi
mov edi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x10], eax
call fcn.00521008
pop ecx
mov ecx, dword [ebp - 0x10]
mov ebx, eax
test cl, 0x40
jne 0x51a820
cmp dword [0x576b2c], 0
je 0x51abc9
cmp ebx, 5
jl 0x51abc9
cmp dword [edi], 0x656c6966
jne 0x51abc9
cmp byte [edi + 4], 0x3a
jne 0x51abc9
and dword [ebp - 0xc], 0
lea edx, [ebx + 2]
or ecx, 0x40
mov dword [ebp - 0x10], ecx
xor ecx, ecx
test ebx, ebx
jle 0x51a862
xor eax, eax
cmp byte [ecx + edi], 0x26
sete al
add edx, eax
inc ecx
cmp ecx, ebx
jl 0x51a852
push edx
call fcn.004e3c1a
mov edx, eax
mov dword [ebp - 8], edx
pop ecx
test edx, edx
jne 0x51a87a
push 7
pop eax
jmp 0x51aba5
cmp byte [edi + 5], 0x2f
push 5
pop esi
jne 0x51a8dc
cmp byte [edi + 6], 0x2f
jne 0x51a8dc
lea ebx, [edi + 7]
mov al, byte [ebx]
push 7
pop esi
test al, al
je 0x51a8dc
cmp al, 0x2f
je 0x51a8a1
inc esi
mov al, byte [esi + edi]
test al, al
jne 0x51a895
cmp esi, 7
je 0x51a8dc
cmp esi, 0x10
jne 0x51a8bf
push 9
push ebx
push str.localhost
call fcn.004ac9ba
add esp, 0xc
test eax, eax
je 0x51a8d9
push ebx
lea eax, [esi - 7]
push eax
push str.invalid_uri_authority:__.s
call fcn.004e3a06
mov esi, dword [ebp - 8]
add esp, 0xc
jmp 0x51ab80
mov edx, dword [ebp - 8]
mov bl, byte [esi + edi]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
test bl, bl
je 0x51aa29
cmp bl, 0x23
je 0x51a9a5
inc esi
cmp bl, 0x25
jne 0x51a9b4
mov al, byte [esi + edi]
mov byte [ebp - 1], al
movzx eax, al
test byte [eax + 0x559a48], 8
je 0x51a9b4
movzx eax, byte [esi + edi + 1]
test byte [eax + 0x559a48], 8
je 0x51a9b4
movsx ecx, byte [ebp - 1]
movsx edx, byte [esi + edi + 1]
mov eax, ecx
sar eax, 6
mov bl, cl
and al, 1
mov cl, dl
movzx eax, al
add esi, 2
imul eax, eax, 7
sub bl, al
mov eax, edx
sar eax, 6
and ebx, 0xf
and al, 1
shl ebx, 4
movzx eax, al
imul eax, eax, 7
sub cl, al
and ecx, 0xf
add ebx, ecx
mov ecx, dword [ebp - 0x14]
je 0x51a990
mov edx, dword [ebp - 8]
jmp 0x51aa1a
cmp al, 0x23
je 0x51a997
test ecx, ecx
jne 0x51a979
cmp al, 0x3f
je 0x51a997
cmp ecx, 1
jne 0x51a986
cmp al, 0x3d
je 0x51a997
cmp al, 0x26
je 0x51a997
cmp ecx, 2
jne 0x51a98f
cmp al, 0x26
je 0x51a997
inc esi
mov al, byte [esi + edi]
test al, al
jne 0x51a96d
mov edx, dword [ebp - 8]
mov bl, byte [esi + edi]
test bl, bl
jne 0x51a8ec
mov eax, dword [ebp - 0xc]
cmp ecx, 1
jne 0x51aa2c
mov byte [edx + eax], 0
inc eax
jmp 0x51aa2c
cmp ecx, 1
jne 0x51a9ff
cmp bl, 0x26
je 0x51a9c3
cmp bl, 0x3d
jne 0x51aa1a
mov eax, dword [ebp - 0xc]
cmp byte [edx + eax - 1], 0
je 0x51a9ec
cmp bl, 0x26
jne 0x51a9f5
mov ebx, eax
mov byte [edx + ebx], 0
inc ebx
mov dword [ebp - 0xc], ebx
mov eax, ebx
jmp 0x51a9fb
cmp al, 0x23
je 0x51a99a
cmp byte [esi + edi - 1], 0x26
je 0x51a99a
inc esi
mov al, byte [esi + edi]
test al, al
jne 0x51a9e0
jmp 0x51a99a
push 2
pop ecx
mov dword [ebp - 0x14], ecx
xor bl, bl
jmp 0x51aa1d
test ecx, ecx
jne 0x51aa08
cmp bl, 0x3f
je 0x51aa12
cmp ecx, 2
jne 0x51aa1a
cmp bl, 0x26
jne 0x51aa1a
xor ecx, ecx
xor bl, bl
inc ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0xc]
mov byte [edx + eax], bl
inc eax
mov dword [ebp - 0xc], eax
jmp 0x51a99a
mov eax, dword [ebp - 0xc]
push edx
mov word [edx + eax], 0
call fcn.00521008
inc edx
pop ecx
add edx, eax
jmp 0x51ab52
push edx
call fcn.00521008
mov ebx, eax
lea edi, [edx + 1]
add edi, ebx
mov dword [ebp - 0x1c], ebx
push edi
call fcn.00521008
mov dword [ebp - 0x20], eax
pop ecx
pop ecx
cmp ebx, 3
jne 0x51aa7b
mov eax, 0x6676
cmp ax, word [edx]
jne 0x51aa7b
push 0x73
pop eax
cmp al, byte [edx + 2]
jne 0x51aa7b
mov dword [ebp + 8], edi
jmp 0x51ab4c
mov eax, dword [ebp - 0x1c]
xor ebx, ebx
and dword [ebp - 0x14], ebx
xor esi, esi
cmp eax, 5
jne 0x51aaac
mov ecx, 0x68636163
cmp ecx, dword [edx]
jne 0x51aaac
push 0x65
pop ecx
cmp cl, byte [edx + 4]
jne 0x51aaac
mov esi, 0x60000
mov dword [ebp - 0x14], 0x56024c
mov ebx, 0x575d58
mov dword [ebp - 0x1c], esi
cmp eax, 4
jne 0x51aae5
push eax
push edx
push str.mode
call fcn.004ac9ba
add esp, 0xc
mov dword [ebp - 0x1c], esi
test eax, eax
jne 0x51aae5
mov ecx, dword [ebp - 0x10]
mov eax, 0x87
and ecx, eax
mov dword [ebp - 0x14], str.access
mov esi, eax
mov dword [ebp - 0x1c], ecx
mov ebx, 0x575d70
test ebx, ebx
je 0x51ab4c
mov edx, dword [ebx]
xor ecx, ecx
mov dword [ebp - 0xc], ecx
jmp 0x51ab19
push edx
call fcn.00521008
pop ecx
mov ecx, dword [ebp - 0x20]
cmp ecx, eax
jne 0x51ab0f
push ecx
push edx
push edi
call fcn.004ac9ba
add esp, 0xc
test eax, eax
je 0x51ab2b
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov edx, dword [ebx + eax*8]
test edx, edx
jne 0x51aaf2
push edi
push dword [ebp - 0x14]
push str.no_such__s_mode:__s
jmp 0x51a8c9
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ebx + ecx*8 + 4]
test ecx, ecx
je 0x51ab1d
mov eax, ecx
and eax, 0xffffff7f
cmp eax, dword [ebp - 0x1c]
jg 0x51abac
not esi
and esi, dword [ebp - 0x10]
or esi, ecx
mov dword [ebp - 0x10], esi
mov edx, dword [ebp - 0x20]
inc edx
add edx, edi
cmp byte [edx], 0
jne 0x51aa41
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
push edi
call fcn.004e25ae
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
test ecx, ecx
jne 0x51ab95
push edi
push str.no_such_vfs:__s
call fcn.004e3a06
pop ecx
pop ecx
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
push esi
call fcn.004e3db5
pop ecx
xor esi, esi
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x18]
mov dword [ecx], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push dword [ebp - 0x14]
push str._s_mode_not_allowed:__s
call fcn.004e3a06
mov esi, dword [ebp - 8]
add esp, 0xc
mov dword [ebp - 0x18], 3
jmp 0x51ab87
lea eax, [ebx + 2]
push eax
call fcn.004e3c1a
mov esi, eax
pop ecx
test esi, esi
je 0x51a872
push ebx
push edi
push esi
call fcn.004abe20
add esp, 0xc
mov word [esi + ebx], 0
and dword [ebp - 0x10], 0xffffffbf
jmp 0x51ab5e