Function at 0x497ccb
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
and dword [ebp - 0x18], 0
mov eax, dword [eax]
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x24], ecx
mov ecx, edi
mov dword [ebp - 0x10], eax
call fcn.0045545d
mov ecx, dword [ebp - 0x10]
mov ebx, eax
test cl, 0x40
jne 0x497d03
cmp dword [0x512fb4], 0
je 0x4980a8
cmp ebx, 5
jl 0x4980a8
cmp dword [edi], 0x656c6966
jne 0x4980a8
cmp byte [edi + 4], 0x3a
jne 0x4980a8
and dword [ebp - 0xc], 0
or ecx, 0x40
mov dword [ebp - 0x10], ecx
xor ecx, ecx
lea edx, [ebx + 2]
test ebx, ebx
jle 0x497d45
xor eax, eax
cmp byte [ecx + edi], 0x26
sete al
add edx, eax
inc ecx
cmp ecx, ebx
jl 0x497d35
push edx
call fcn.004536f2
pop ecx
mov ecx, eax
mov dword [ebp - 8], ecx
push 7
test ecx, ecx
jne 0x497d5d
pop eax
jmp 0x498086
cmp byte [edi + 5], 0x2f
pop edx
jne 0x497db8
cmp byte [edi + 6], 0x2f
jne 0x497db8
lea ebx, [edi + 7]
mov esi, edx
mov al, byte [ebx]
test al, al
je 0x497dc0
cmp al, 0x2f
je 0x497d81
inc esi
mov al, byte [esi + edi]
test al, al
jne 0x497d75
cmp esi, edx
je 0x497dc0
cmp esi, 0x10
jne 0x497d9e
push 9
push ebx
push str.localhost
call fcn.004ab4d9
add esp, 0xc
test eax, eax
je 0x497dbd
push ebx
lea eax, [esi - 7]
push eax
push str.invalid_uri_authority:__.s
call fcn.00454c26
mov esi, dword [ebp - 8]
add esp, 0xc
jmp 0x498061
push 5
pop esi
jmp 0x497dc0
mov ecx, dword [ebp - 8]
mov bl, byte [esi + edi]
xor edx, edx
mov dword [ebp - 0x14], edx
test bl, bl
je 0x497f0b
cmp bl, 0x23
je 0x497e87
inc esi
cmp bl, 0x25
jne 0x497e96
mov al, byte [esi + edi]
mov byte [ebp - 1], al
movzx eax, al
test byte [eax + 0x4f1298], 8
je 0x497e96
movzx eax, byte [esi + edi + 1]
test byte [eax + 0x4f1298], 8
je 0x497e96
movsx ecx, byte [ebp - 1]
movsx edx, byte [esi + edi + 1]
mov eax, ecx
sar eax, 6
and al, 1
push 7
pop ebx
imul bl
mov bl, cl
sub bl, al
mov eax, edx
sar eax, 6
push 7
pop ecx
and al, 1
imul cl
mov cl, dl
mov edx, dword [ebp - 0x14]
sub cl, al
and ebx, 0xf
shl ebx, 4
add esi, 2
and ecx, 0xf
add ebx, ecx
je 0x497e72
mov ecx, dword [ebp - 8]
jmp 0x497efc
cmp al, 0x23
je 0x497e79
test edx, edx
jne 0x497e5b
cmp al, 0x3f
je 0x497e79
cmp edx, 1
jne 0x497e68
cmp al, 0x3d
je 0x497e79
cmp al, 0x26
je 0x497e79
cmp edx, 2
jne 0x497e71
cmp al, 0x26
je 0x497e79
inc esi
mov al, byte [esi + edi]
test al, al
jne 0x497e4f
mov ecx, dword [ebp - 8]
mov bl, byte [esi + edi]
test bl, bl
jne 0x497dd0
mov eax, dword [ebp - 0xc]
cmp edx, 1
jne 0x497f0e
mov byte [ecx + eax], 0
inc eax
jmp 0x497f0e
cmp edx, 1
jne 0x497ee1
cmp bl, 0x26
je 0x497ea5
cmp bl, 0x3d
jne 0x497efc
mov eax, dword [ebp - 0xc]
cmp byte [ecx + eax - 1], 0
je 0x497ece
cmp bl, 0x26
jne 0x497ed7
mov ebx, eax
mov byte [ecx + ebx], 0
inc ebx
mov dword [ebp - 0xc], ebx
mov eax, ebx
jmp 0x497edd
cmp al, 0x23
je 0x497e7c
cmp byte [esi + edi - 1], 0x26
je 0x497e7c
inc esi
mov al, byte [esi + edi]
test al, al
jne 0x497ec2
jmp 0x497e7c
push 2
pop edx
mov dword [ebp - 0x14], edx
xor bl, bl
jmp 0x497eff
test edx, edx
jne 0x497eea
cmp bl, 0x3f
je 0x497ef4
cmp edx, 2
jne 0x497efc
cmp bl, 0x26
jne 0x497efc
xor edx, edx
xor bl, bl
inc edx
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xc]
mov byte [ecx + eax], bl
inc eax
mov dword [ebp - 0xc], eax
jmp 0x497e7c
mov eax, dword [ebp - 0xc]
mov word [ecx + eax], 0
call fcn.0045545d
lea edx, [ecx + 1]
add edx, eax
jmp 0x498033
mov ecx, edx
call fcn.0045545d
mov esi, eax
lea ebx, [edx + 1]
add ebx, esi
mov ecx, ebx
mov dword [ebp - 0x1c], esi
call fcn.0045545d
mov ecx, eax
mov dword [ebp - 0x14], ecx
cmp esi, 3
jne 0x497f5f
mov eax, 0x6676
cmp ax, word [edx]
jne 0x497f5f
push 0x73
pop eax
cmp al, byte [edx + 2]
jne 0x497f5f
mov dword [ebp - 0x24], ebx
jmp 0x49802e
mov eax, dword [ebp - 0x1c]
xor edi, edi
and dword [ebp - 0xc], edi
xor esi, esi
and dword [ebp - 0x20], esi
cmp eax, 5
jne 0x497fa1
mov esi, 0x68636163
cmp esi, dword [edx]
jne 0x49802e
push 0x65
pop ecx
cmp cl, byte [edx + 4]
mov ecx, dword [ebp - 0x14]
jne 0x49802e
mov esi, 0x60000
mov edi, 0x512328
mov dword [ebp - 0x20], esi
mov dword [ebp - 0xc], str.cache
cmp eax, 4
jne 0x497fc9
cmp dword [edx], 0x65646f6d
jne 0x497fc9
mov eax, dword [ebp - 0x10]
mov edx, 0x87
and eax, edx
mov esi, edx
mov edi, 0x5126bc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], str.access
test edi, edi
je 0x49802e
mov ecx, dword [edi]
xor edx, edx
jmp 0x497ff5
call fcn.0045545d
cmp dword [ebp - 0x14], eax
jne 0x497ff1
push dword [ebp - 0x14]
push ecx
push ebx
call fcn.004ab4d9
add esp, 0xc
test eax, eax
je 0x49800a
mov edx, dword [ebp - 0x1c]
inc edx
mov ecx, dword [edi + edx*8]
mov dword [ebp - 0x1c], edx
test ecx, ecx
jne 0x497fd3
push ebx
push dword [ebp - 0xc]
push str.no_such__s_mode:__s
jmp 0x497da8
mov eax, dword [ebp - 0x1c]
mov ecx, dword [edi + eax*8 + 4]
test ecx, ecx
je 0x497ffc
mov eax, ecx
and eax, 0xffffff7f
cmp eax, dword [ebp - 0x20]
jg 0x49808b
not esi
and esi, dword [ebp - 0x10]
or esi, ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
lea edx, [ebx + 1]
add edx, ecx
cmp byte [edx], 0
jne 0x497f23
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0x24]
push edi
call fcn.00452ff5
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
test ecx, ecx
jne 0x498076
push edi
push str.no_such_vfs:__s
call fcn.00454c26
pop ecx
pop ecx
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp + 0x14]
push esi
mov dword [ecx], eax
call fcn.004538a3
pop ecx
xor esi, esi
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
mov dword [ecx], esi
pop edi
pop esi
pop ebx
leave
ret
push ebx
push dword [ebp - 0xc]
push str._s_mode_not_allowed:__s
call fcn.00454c26
mov esi, dword [ebp - 8]
add esp, 0xc
mov dword [ebp - 0x18], 3
jmp 0x498068
lea eax, [ebx + 2]
push eax
call fcn.004536f2
mov esi, eax
pop ecx
test esi, esi
jne 0x4980bf
push 7
jmp 0x497d57
push ebx
push edi
push esi
call fcn.004a8c80
add esp, 0xc
and dword [ebp - 0x10], 0xffffffbf
mov word [esi + ebx], 0
jmp 0x49803f