Function at 0x5b807b
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.005be897
pop ecx
mov ecx, dword [ebp - 0x10]
mov ebx, eax
test cl, 0x40
jne 0x5b80b1
cmp dword [0x666d54], 0
je 0x5b845a
cmp ebx, 5
jl 0x5b845a
cmp dword [edi], 0x656c6966
jne 0x5b845a
cmp byte [edi + 4], 0x3a
jne 0x5b845a
and dword [ebp - 0xc], 0
lea edx, [ebx + 2]
or ecx, 0x40
mov dword [ebp - 0x10], ecx
xor ecx, ecx
test ebx, ebx
jle 0x5b80f3
xor eax, eax
cmp byte [ecx + edi], 0x26
sete al
add edx, eax
inc ecx
cmp ecx, ebx
jl 0x5b80e3
push edx
call fcn.0058144a
mov edx, eax
mov dword [ebp - 8], edx
pop ecx
test edx, edx
jne 0x5b810b
push 7
pop eax
jmp 0x5b8436
cmp byte [edi + 5], 0x2f
push 5
pop esi
jne 0x5b816d
cmp byte [edi + 6], 0x2f
jne 0x5b816d
lea ebx, [edi + 7]
mov al, byte [ebx]
push 7
pop esi
test al, al
je 0x5b816d
cmp al, 0x2f
je 0x5b8132
inc esi
mov al, byte [esi + edi]
test al, al
jne 0x5b8126
cmp esi, 7
je 0x5b816d
cmp esi, 0x10
jne 0x5b8150
push 9
push ebx
push str.localhost
call fcn.0050bb9a
add esp, 0xc
test eax, eax
je 0x5b816a
push ebx
lea eax, [esi - 7]
push eax
push str.invalid_uri_authority:__.s
call fcn.00581357
mov esi, dword [ebp - 8]
add esp, 0xc
jmp 0x5b8411
mov edx, dword [ebp - 8]
mov bl, byte [esi + edi]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
test bl, bl
je 0x5b82ba
cmp bl, 0x23
je 0x5b8236
inc esi
cmp bl, 0x25
jne 0x5b8245
mov al, byte [esi + edi]
mov byte [ebp - 1], al
movzx eax, al
test byte [eax + 0x610178], 8
je 0x5b8245
movzx eax, byte [esi + edi + 1]
test byte [eax + 0x610178], 8
je 0x5b8245
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 0x5b8221
mov edx, dword [ebp - 8]
jmp 0x5b82ab
cmp al, 0x23
je 0x5b8228
test ecx, ecx
jne 0x5b820a
cmp al, 0x3f
je 0x5b8228
cmp ecx, 1
jne 0x5b8217
cmp al, 0x3d
je 0x5b8228
cmp al, 0x26
je 0x5b8228
cmp ecx, 2
jne 0x5b8220
cmp al, 0x26
je 0x5b8228
inc esi
mov al, byte [esi + edi]
test al, al
jne 0x5b81fe
mov edx, dword [ebp - 8]
mov bl, byte [esi + edi]
test bl, bl
jne 0x5b817d
mov eax, dword [ebp - 0xc]
cmp ecx, 1
jne 0x5b82bd
mov byte [edx + eax], 0
inc eax
jmp 0x5b82bd
cmp ecx, 1
jne 0x5b8290
cmp bl, 0x26
je 0x5b8254
cmp bl, 0x3d
jne 0x5b82ab
mov eax, dword [ebp - 0xc]
cmp byte [edx + eax - 1], 0
je 0x5b827d
cmp bl, 0x26
jne 0x5b8286
mov ebx, eax
mov byte [edx + ebx], 0
inc ebx
mov dword [ebp - 0xc], ebx
mov eax, ebx
jmp 0x5b828c
cmp al, 0x23
je 0x5b822b
cmp byte [esi + edi - 1], 0x26
je 0x5b822b
inc esi
mov al, byte [esi + edi]
test al, al
jne 0x5b8271
jmp 0x5b822b
push 2
pop ecx
mov dword [ebp - 0x14], ecx
xor bl, bl
jmp 0x5b82ae
test ecx, ecx
jne 0x5b8299
cmp bl, 0x3f
je 0x5b82a3
cmp ecx, 2
jne 0x5b82ab
cmp bl, 0x26
jne 0x5b82ab
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 0x5b822b
mov eax, dword [ebp - 0xc]
push edx
mov word [edx + eax], 0
call fcn.005be897
inc edx
pop ecx
add edx, eax
jmp 0x5b83e3
push edx
call fcn.005be897
mov ebx, eax
lea edi, [edx + 1]
add edi, ebx
mov dword [ebp - 0x1c], ebx
push edi
call fcn.005be897
mov dword [ebp - 0x20], eax
pop ecx
pop ecx
cmp ebx, 3
jne 0x5b830c
mov eax, 0x6676
cmp ax, word [edx]
jne 0x5b830c
push 0x73
pop eax
cmp al, byte [edx + 2]
jne 0x5b830c
mov dword [ebp + 8], edi
jmp 0x5b83dd
mov eax, dword [ebp - 0x1c]
xor ebx, ebx
and dword [ebp - 0x14], ebx
xor esi, esi
cmp eax, 5
jne 0x5b833d
mov ecx, 0x68636163
cmp ecx, dword [edx]
jne 0x5b833d
push 0x65
pop ecx
cmp cl, byte [edx + 4]
jne 0x5b833d
mov esi, 0x60000
mov dword [ebp - 0x14], 0x616880
mov ebx, 0x666e5c
mov dword [ebp - 0x1c], esi
cmp eax, 4
jne 0x5b8376
push eax
push edx
push str.mode
call fcn.0050bb9a
add esp, 0xc
mov dword [ebp - 0x1c], esi
test eax, eax
jne 0x5b8376
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, 0x666e74
test ebx, ebx
je 0x5b83dd
mov edx, dword [ebx]
xor ecx, ecx
mov dword [ebp - 0xc], ecx
jmp 0x5b83aa
push edx
call fcn.005be897
pop ecx
mov ecx, dword [ebp - 0x20]
cmp ecx, eax
jne 0x5b83a0
push ecx
push edx
push edi
call fcn.0050bb9a
add esp, 0xc
test eax, eax
je 0x5b83bc
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov edx, dword [ebx + eax*8]
test edx, edx
jne 0x5b8383
push edi
push dword [ebp - 0x14]
push str.no_such__s_mode:__s
jmp 0x5b815a
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ebx + ecx*8 + 4]
test ecx, ecx
je 0x5b83ae
mov eax, ecx
and eax, 0xffffff7f
cmp eax, dword [ebp - 0x1c]
jg 0x5b843d
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 0x5b82d2
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
push edi
call fcn.0057fdc1
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
test ecx, ecx
jne 0x5b8426
push edi
push str.no_such_vfs:__s
call fcn.00581357
pop ecx
pop ecx
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
push esi
call fcn.0058157f
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.00581357
mov esi, dword [ebp - 8]
add esp, 0xc
mov dword [ebp - 0x18], 3
jmp 0x5b8418
lea eax, [ebx + 2]
push eax
call fcn.0058144a
mov esi, eax
pop ecx
test esi, esi
je 0x5b8103
push ebx
push edi
push esi
call fcn.0050ad80
add esp, 0xc
mov word [esi + ebx], 0
and dword [ebp - 0x10], 0xffffffbf
jmp 0x5b83ef